public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] VIDEO: mx3fb: GCC4.6 fix build warnings
@ 2011-11-06 10:42 Stefano Babic
  2011-11-10 20:49 ` Anatolij Gustschin
  0 siblings, 1 reply; 2+ messages in thread
From: Stefano Babic @ 2011-11-06 10:42 UTC (permalink / raw)
  To: u-boot

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

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Anatolij Gustschin <agust@denx.de>
---
 drivers/video/mx3fb.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/video/mx3fb.c b/drivers/video/mx3fb.c
index f30deb3..eb75c6a 100644
--- a/drivers/video/mx3fb.c
+++ b/drivers/video/mx3fb.c
@@ -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);
-- 
1.7.6.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] VIDEO: mx3fb: GCC4.6 fix build warnings
  2011-11-06 10:42 [U-Boot] [PATCH] VIDEO: mx3fb: GCC4.6 fix build warnings Stefano Babic
@ 2011-11-10 20:49 ` Anatolij Gustschin
  0 siblings, 0 replies; 2+ messages in thread
From: Anatolij Gustschin @ 2011-11-10 20:49 UTC (permalink / raw)
  To: u-boot

On Sun,  6 Nov 2011 11:42:07 +0100
Stefano Babic <sbabic@denx.de> wrote:

> Fix:
> mx3fb.c: In function 'video_hw_init':
> mx3fb.c:827:30: warning: variable 'vesa_idx' set but not used
> 
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> CC: Anatolij Gustschin <agust@denx.de>
> ---
>  drivers/video/mx3fb.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks!

Anatolij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-10 20:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-06 10:42 [U-Boot] [PATCH] VIDEO: mx3fb: GCC4.6 fix build warnings Stefano Babic
2011-11-10 20:49 ` Anatolij Gustschin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox