diff options
author | Danilo Krummrich <dakr@redhat.com> | 2024-01-11 17:00:05 +0100 |
---|---|---|
committer | Danilo Krummrich <dakr@redhat.com> | 2024-01-11 19:53:44 +0100 |
commit | e33b8a8425ea32888cf9b992a269d8b2d5ea21b4 (patch) | |
tree | 4f17450433daa7aff62d200dfe1ee54927a4ba56 | |
parent | e4658c82aa64793fb09868683f62f863e004f0b5 (diff) |
nova: fix warnings of unused variables
Fixes: 52deb6825ca4 ("simple print out some info about gpu")
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nova/nova_drv.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nova/nova_drv.rs b/drivers/gpu/drm/nova/nova_drv.rs index 627054515bc1..ed1bb94fdf25 100644 --- a/drivers/gpu/drm/nova/nova_drv.rs +++ b/drivers/gpu/drm/nova/nova_drv.rs @@ -41,7 +41,7 @@ impl pci::Driver for NovaDevice { dev.enable_device_mem()?; dev.set_master(); - let bars = dev.select_bars(bindings::IORESOURCE_MEM.into()); + let _bars = dev.select_bars(bindings::IORESOURCE_MEM.into()); let res = dev.take_resource(0).ok_or(ENXIO)?; let bar = unsafe { IoMem::<BAR_SIZE>::try_new(res) }?; @@ -53,7 +53,7 @@ impl pci::Driver for NovaDevice { } pr_info!("nvidia hw rev 0x{:#x}", boot0); let chipset = (boot0 & 0x1ff00000) >> 20; - let chiprev = boot0 & 0xff; + let _chiprev = boot0 & 0xff; let card_type = match chipset & 0x1f0 { 0x160 => { pr_info!("TU100"); CardType::TU100 }, |