]> git.sur5r.net Git - u-boot/commitdiff
drivers/video/da8xx-fb.c: Fix GCC 4.6 warning
authorAnatolij Gustschin <agust@denx.de>
Tue, 15 Nov 2011 13:20:58 +0000 (13:20 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 16 Nov 2011 20:36:08 +0000 (21:36 +0100)
Fix:
da8xx-fb.c: In function 'video_hw_init':
da8xx-fb.c:688:6: warning: variable 'ret' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/video/da8xx-fb.c

index bca9fb59bf78f3f1b3a3f991f379b54b74356d13..a2981b18eb50b1e31bdda016478b0ea9135a78ea 100644 (file)
@@ -685,7 +685,6 @@ static u32 wait_for_event(u32 event)
 void *video_hw_init(void)
 {
        struct da8xx_fb_par *par;
-       int ret;
        u32 size;
        char *p;
 
@@ -738,7 +737,6 @@ void *video_hw_init(void)
 
        if (lcd_init(par, &lcd_cfg, lcd_panel) < 0) {
                printf("lcd_init failed\n");
-               ret = -EFAULT;
                goto err_release_fb;
        }
 
@@ -754,7 +752,6 @@ void *video_hw_init(void)
                (unsigned int)par->vram_virt);
        if (!par->vram_virt) {
                printf("GLCD: malloc for frame buffer failed\n");
-               ret = -EINVAL;
                goto err_release_fb;
        }