Skip to contentSkip to conversation

VIDEO: mx3fb: GCC4.6 fix build warnings

PATCH New Stefano Babic 2 participants 2 messages Nov 6, 2011 – Nov 10, 2011 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 VIDEO: mx3fb: GCC4.6 fix build warnings

Fix:
mx3fb.c: In function 'video_hw_init':
mx3fb.c:827:30: warning: variable 'vesa_idx' set but not used

CC Anatolij Gustschin <[email protected]>
---
 drivers/video/mx3fb.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/video/mx3fb.c +1 -2
index f30deb3..eb75c6a 100644
@@ -824,7 +824,7 @@ void *video_hw_init(void)
 	char *penv;
 	u32 memsize;
 	unsigned long t1, hsynch, vsynch;
-	int bits_per_pixel, i, tmp, vesa_idx = 0, videomode;
+	int bits_per_pixel, i, tmp, videomode;
 
 	tmp = 0;
 
@@ -857,7 +857,6 @@ void *video_hw_init(void)
 		mode = (struct ctfb_res_modes *)
 				&res_mode_init[vesa_modes[i].resindex];
 		bits_per_pixel = vesa_modes[i].bits_per_pixel;
-		vesa_idx = vesa_modes[i].resindex;
 	} else {
 		mode = (struct ctfb_res_modes *) &var_mode;
 		bits_per_pixel = video_get_params(mode, penv);
Signature · 1 line
1.7.6.4
#1 lore raw

PATCH 1/1 VIDEO: mx3fb: GCC4.6 fix build warnings

Quoted 9 lines · On Sun, 6 Nov 2011 11:42:07 +0100 Stefano Babic <[email protected]> wrote:

Fix:
mx3fb.c: In function 'video_hw_init':
mx3fb.c:827:30: warning: variable 'vesa_idx' set but not used

CC Anatolij Gustschin <[email protected]>
---
 drivers/video/mx3fb.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks!

Anatolij