mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Toralf Förster" <toralf.foerster@gmx.de>
To: linux-fbdev-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] remove needless variable from drivers/video/fbmon.c
Date: Sat, 25 Jul 2009 19:44:34 +0200	[thread overview]
Message-ID: <200907251944.35148.toralf.foerster@gmx.de> (raw)

fbmon.c: integer err is not needed

Signed-off-by: Toralf Foerster <toralf.foerster@gmx.de>
---
 drivers/video/fbmon.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c
index 9ae9cd3..e1b7073 100644
--- a/drivers/video/fbmon.c
+++ b/drivers/video/fbmon.c
@@ -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)
-- 
MfG/Sincerely

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


                 reply	other threads:[~2009-07-25 17:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200907251944.35148.toralf.foerster@gmx.de \
    --to=toralf.foerster@gmx.de \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®