mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
rust: pci: 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-2-gary@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
parent
a38cd1fea9
commit
600de1c008
3 changed files with 5 additions and 5 deletions
|
|
@ -101,7 +101,7 @@ impl pci::Driver for SampleDriver {
|
|||
pin_init::pin_init_scope(move || {
|
||||
let vendor = pdev.vendor_id();
|
||||
dev_dbg!(
|
||||
pdev.as_ref(),
|
||||
pdev,
|
||||
"Probe Rust PCI driver sample (PCI ID: {}, 0x{:x}).\n",
|
||||
vendor,
|
||||
pdev.device_id()
|
||||
|
|
@ -117,7 +117,7 @@ impl pci::Driver for SampleDriver {
|
|||
let bar = bar.access(pdev.as_ref())?;
|
||||
|
||||
dev_info!(
|
||||
pdev.as_ref(),
|
||||
pdev,
|
||||
"pci-testdev data-match count: {}\n",
|
||||
Self::testdev(info, bar)?
|
||||
);
|
||||
|
|
@ -139,7 +139,7 @@ impl pci::Driver for SampleDriver {
|
|||
#[pinned_drop]
|
||||
impl PinnedDrop for SampleDriver {
|
||||
fn drop(self: Pin<&mut Self>) {
|
||||
dev_dbg!(self.pdev.as_ref(), "Remove Rust PCI driver sample.\n");
|
||||
dev_dbg!(self.pdev, "Remove Rust PCI driver sample.\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue