Skip to content

Commit 408e4f9

Browse files
dirkbehmeDanilo Krummrich
authored andcommitted
samples: rust: pci: Remove some additional .as_ref() for dev_* print
The commit 600de1c ("rust: pci: remove redundant `.as_ref()` for `dev_*` print") removed `.as_ref()` for `dev_*` prints. Nearly at the same time the commit e62e48a ("sample: rust: pci: add tests for config space routines") was merged. Which missed this removal, then. Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Link: https://patch.msgid.link/20260202064001.176787-1-dirk.behme@de.bosch.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
1 parent 21bab79 commit 408e4f9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

samples/rust/rust_driver_pci.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,19 @@ impl SampleDriver {
7373
// TODO: use the register!() macro for defining PCI configuration space registers once it
7474
// has been move out of nova-core.
7575
dev_info!(
76-
pdev.as_ref(),
76+
pdev,
7777
"pci-testdev config space read8 rev ID: {:x}\n",
7878
config.read8(0x8)
7979
);
8080

8181
dev_info!(
82-
pdev.as_ref(),
82+
pdev,
8383
"pci-testdev config space read16 vendor ID: {:x}\n",
8484
config.read16(0)
8585
);
8686

8787
dev_info!(
88-
pdev.as_ref(),
88+
pdev,
8989
"pci-testdev config space read32 BAR 0: {:x}\n",
9090
config.read32(0x10)
9191
);

0 commit comments

Comments
 (0)