summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/nova/nova_drv.rs4
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 },