projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42b558d
)
fbdev: fb_create_modedb() non-static `int first = 1;'
author
Geert Uytterhoeven
<
[email protected]
>
Tue, 16 Oct 2007 08:28:52 +0000
(
01:28
-0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 16 Oct 2007 16:43:15 +0000
(09:43 -0700)
Looking at the code flow, `int first' in fb_create_modedb() should be static.
[adaplas]
Better for 'int first' to be moved outside the loop.
[
[email protected]
: kill stray semicolon]
Signed-off-by: Geert Uytterhoeven <
[email protected]
>
Signed-off-by: Antonino Daplas <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/fbmon.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbmon.c
b/drivers/video/fbmon.c
index 438b9411905c58e1536578b266a919e1df152a6d..4ba9c08944161043fb1c9a13a3e4a0b5652dc5c7 100644
(file)
--- a/
drivers/video/fbmon.c
+++ b/
drivers/video/fbmon.c
@@
-591,7
+591,7
@@
static struct fb_videomode *fb_create_modedb(unsigned char *edid, int *dbsize)
{
struct fb_videomode *mode, *m;
unsigned char *block;
- int num = 0, i;
+ int num = 0, i
, first = 1
;
mode = kzalloc(50 * sizeof(struct fb_videomode), GFP_KERNEL);
if (mode == NULL)
@@
-608,8
+608,6
@@
static struct fb_videomode *fb_create_modedb(unsigned char *edid, int *dbsize)
DPRINTK(" Detailed Timings\n");
block = edid + DETAILED_TIMING_DESCRIPTIONS_START;
for (i = 0; i < 4; i++, block+= DETAILED_TIMING_DESCRIPTION_SIZE) {
- int first = 1;
-
if (!(block[0] == 0x00 && block[1] == 0x00)) {
get_detailed_timing(block, &mode[num]);
if (first) {