From: Andre Haupt Date: Wed, 6 Feb 2008 09:39:09 +0000 (-0800) Subject: fbmon: remove unnecessary local variable X-Git-Tag: firefly_0821_release~23086 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cb85063ae806e14f653f6e1fa7ffb63c6b9a4f0e;p=firefly-linux-kernel-4.4.55.git fbmon: remove unnecessary local variable This fixes a sparse warning about symbol 'i' shadowing an earlier one. Signed-off-by: Andre Haupt Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c index 4ba9c0894416..3f3a4e97a300 100644 --- a/drivers/video/fbmon.c +++ b/drivers/video/fbmon.c @@ -686,7 +686,7 @@ static int fb_get_monitor_limits(unsigned char *edid, struct fb_monspecs *specs) /* estimate monitor limits based on modes supported */ if (retval) { struct fb_videomode *modes, *mode; - int num_modes, i, hz, hscan, pixclock; + int num_modes, hz, hscan, pixclock; int vtotal, htotal; modes = fb_create_modedb(edid, &num_modes);