[PATCH 5/7] DRM: cleanup: `size == 0' is never true

Michael Witten mfwitten at gmail.com
Wed Sep 21 15:50:55 PDT 2011


Date: Fri, 16 Sep 2011 20:09:22 +0000

Signed-off-by: Michael Witten <mfwitten at gmail.com>
---
 drivers/gpu/drm/radeon/radeon_bios.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_bios.c b/drivers/gpu/drm/radeon/radeon_bios.c
index 229a20f..af62082 100644
--- a/drivers/gpu/drm/radeon/radeon_bios.c
+++ b/drivers/gpu/drm/radeon/radeon_bios.c
@@ -59,7 +59,7 @@ static bool igp_read_bios_from_vram(struct radeon_device *rdev)
 		return false;
 	}
 
-	if (size == 0 || bios[0] != 0x55 || bios[1] != 0xaa) {
+	if (bios[0] != 0x55 || bios[1] != 0xaa) {
 		iounmap(bios);
 		return false;
 	}
-- 
1.7.6.409.ge7a85



More information about the dri-devel mailing list