From 969ca11e50b84633c60bfc88faee025b79891c24 Mon Sep 17 00:00:00 2001 From: Danilo Krummrich Date: Thu, 11 Jan 2024 23:40:31 +0100 Subject: nova: bios: fix warnings of unhandled results Signed-off-by: Danilo Krummrich --- drivers/gpu/drm/nova/bios.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nova/bios.rs b/drivers/gpu/drm/nova/bios.rs index 2433d583e19a..324254d7d162 100644 --- a/drivers/gpu/drm/nova/bios.rs +++ b/drivers/gpu/drm/nova/bios.rs @@ -155,7 +155,7 @@ impl Bios { let mut data = 0; - Self::bit_entry(bios, 112 as u8, &mut bit_p); + let _ = Self::bit_entry(bios, 112 as u8, &mut bit_p); if bit_p.id != 112 as u8 { return 0; } @@ -379,7 +379,7 @@ impl Bios { let mut bit_entry: BitEntry = Default::default(); - Bios::bit_entry(self, 'i' as u8, &mut bit_entry); + Bios::bit_entry(self, 'i' as u8, &mut bit_entry)?; pr_info!("bit i {:#x} {:#x}\n", bit_entry.offset, bit_entry.length); if bit_entry.length >= 4 { -- cgit v1.2.3-58-ga151