From e33b8a8425ea32888cf9b992a269d8b2d5ea21b4 Mon Sep 17 00:00:00 2001 From: Danilo Krummrich Date: Thu, 11 Jan 2024 17:00:05 +0100 Subject: nova: fix warnings of unused variables Fixes: 52deb6825ca4 ("simple print out some info about gpu") Signed-off-by: Danilo Krummrich --- drivers/gpu/drm/nova/nova_drv.rs | 4 ++-- 1 file 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::::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 }, -- cgit v1.2.3-58-ga151