Skip to content

Commit

Permalink
fbmon: remove unnecessary local variable
Browse files Browse the repository at this point in the history
This fixes a sparse warning about symbol 'i' shadowing an earlier one.

Signed-off-by: Andre Haupt <andre@bitwigglers.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andre Haupt authored and Linus Torvalds committed Feb 6, 2008
1 parent ea237a6 commit cb85063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/fbmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cb85063

Please sign in to comment.