Skip to contentSkip to conversation

fbmon.c: variable err not needed

PATCH New Toralf Förster 1 participant 1 message Jul 28, 2009 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbmon.c: variable err not needed

Resend after checkpatch.pl doesn't complained about it :

---
drivers/video/fbmon.c | 6 +++---

 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/video/fbmon.c +3 -3
index 9ae9cd3..e1b7073 100644
@@ -277,17 +277,17 @@ static int edid_checksum(unsigned char *edid)
 
 static int edid_check_header(unsigned char *edid)
 {
-	int i, err = 1, fix = check_edid(edid);
+	int i, fix = check_edid(edid);
 
 	if (fix)
 		fix_edid(edid, fix);
 
 	for (i = 0; i < 8; i++) {
 		if (edid[i] != edid_v1_header[i])
-			err = 0;
+			return 0;
 	}
 
-	return err;
+	return 1;
 }
 
 static void parse_vendor_block(unsigned char *block, struct fb_monspecs *specs)
Signature · 11 lines
MfG/Sincerely

Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july