Patchwork [U-Boot] VIDEO: mb86r0xgdc.c: fix warning: unused variable 'i'

login
register
mail settings
Submitter Wolfgang Denk
Date Sept. 5, 2011, 7:51 p.m.
Message ID <1315252293-5648-1-git-send-email-wd@denx.de>
Download mbox | patch
Permalink /patch/113436/
State Accepted
Commit 4cd3f7cb08b08659b524f27a582adc21c43e861c
Headers show

Comments

Wolfgang Denk - Sept. 5, 2011, 7:51 p.m.
Fix build warning:

Configuring for jadecpu board...
mb86r0xgdc.c: In function 'dsp_init':
mb86r0xgdc.c:60: warning: unused variable 'i'

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
---
 drivers/video/mb86r0xgdc.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
Anatolij Gustschin - Sept. 6, 2011, 6:52 a.m.
Hello Wolfgang,

On Mon,  5 Sep 2011 21:51:33 +0200
Wolfgang Denk <wd@denx.de> wrote:

> Fix build warning:
> 
> Configuring for jadecpu board...
> mb86r0xgdc.c: In function 'dsp_init':
> mb86r0xgdc.c:60: warning: unused variable 'i'
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> Cc: Anatolij Gustschin <agust@denx.de>
> ---
>  drivers/video/mb86r0xgdc.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)

applied to u-boot-video/master. Thanks!

Anatolij

Patch

diff --git a/drivers/video/mb86r0xgdc.c b/drivers/video/mb86r0xgdc.c
index 5425c9d..345a73b 100644
--- a/drivers/video/mb86r0xgdc.c
+++ b/drivers/video/mb86r0xgdc.c
@@ -57,7 +57,6 @@  static void dsp_init(struct mb86r0x_gdc_dsp *dsp, char *modestr,
 	u16 l2dx, l2dy, l2wx, l2wy, l2ww, l2wh;
 	unsigned long div;
 	int bpp;
-	u32 i;
 
 	bpp = video_get_params(&var_mode, modestr);