diff options
author | Dave Airlie <airlied@redhat.com> | 2023-11-30 07:06:33 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2023-11-30 08:42:17 +1000 |
commit | 9f17b68893b623634dcfac7ff56544825247ef82 (patch) | |
tree | e0d7f15c49c0ae5f2df958cf27ed09edd3bb647c | |
parent | 9696f9149166e192dd9a47c1ffca26ece2bd6ef5 (diff) |
fix warng
-rw-r--r-- | drivers/gpu/drm/nova/nova_drv.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nova/nova_drv.rs b/drivers/gpu/drm/nova/nova_drv.rs index e9314cdfb289..c4b5b6cd7e89 100644 --- a/drivers/gpu/drm/nova/nova_drv.rs +++ b/drivers/gpu/drm/nova/nova_drv.rs @@ -48,14 +48,14 @@ impl pci::Driver for NovaDevice { let boot0 = u64::from_le(bar.readq(0)); - if (boot0 & 0x1f000000) == 0 { + if boot0 & 0x1f000000 == 0 { return Err(ENODEV); } pr_info!("nvidia hw rev 0x{:#x}", boot0); let chipset = (boot0 & 0x1ff00000) >> 20; - let chiprev = (boot0 & 0xff); + let chiprev = boot0 & 0xff; - match (chipset & 0x1f0) { + match chipset & 0x1f0 { 0x160 => pr_info!("TU100"), 0x170 => pr_info!("GA100"), 0x190 => pr_info!("AD100"), |