Skip to content

Commit bde50e2

Browse files
Andreas Hindborgaxboe
authored andcommitted
rust: block: mq: fix spelling in a safety comment
Add code block quotes to a safety comment. Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com> Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org> Link: https://lore.kernel.org/r/20250902-rnull-up-v6-16-v7-15-b5212cc89b98@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 90d952f commit bde50e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/block/mq/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl<T: Operations> Request<T> {
148148
// valid allocation.
149149
let wrapper_ptr =
150150
unsafe { bindings::blk_mq_rq_to_pdu(request_ptr).cast::<RequestDataWrapper>() };
151-
// SAFETY: By C API contract, wrapper_ptr points to a valid allocation
151+
// SAFETY: By C API contract, `wrapper_ptr` points to a valid allocation
152152
// and is not null.
153153
unsafe { NonNull::new_unchecked(wrapper_ptr) }
154154
}

0 commit comments

Comments
 (0)