diff options
| author | Gary Guo <gary@garyguo.net> | 2026-01-23 17:58:40 +0000 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-01-24 01:12:49 +0100 |
| commit | 3be458a5a7ed57cb874474aee7929daed0d5d3aa (patch) | |
| tree | a950f03cf7f741b6ac6c431ea4a35c2eb2f181c1 /samples/rust/rust_driver_platform.rs | |
| parent | 600de1c008b2302b56d69ff27d12a9d8d14892ac (diff) | |
rust: samples: driver-core: remove redundant `.as_ref()` for `dev_*` print
This is now handled by the macro itself.
Signed-off-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260123175854.176735-3-gary@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'samples/rust/rust_driver_platform.rs')
| -rw-r--r-- | samples/rust/rust_driver_platform.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/rust/rust_driver_platform.rs b/samples/rust/rust_driver_platform.rs index 9537dc38c563..f2229d176fb9 100644 --- a/samples/rust/rust_driver_platform.rs +++ b/samples/rust/rust_driver_platform.rs @@ -180,7 +180,7 @@ impl SampleDriver { impl Drop for SampleDriver { fn drop(&mut self) { - dev_dbg!(self.pdev.as_ref(), "Remove Rust Platform driver sample.\n"); + dev_dbg!(self.pdev, "Remove Rust Platform driver sample.\n"); } } |
