]> Git Repo - linux.git/commitdiff
video: fbdev: atmel_lcdfb: remove set but not used variable 'pdata'
authorYueHaibing <[email protected]>
Thu, 11 Apr 2019 17:25:12 +0000 (19:25 +0200)
committerBartlomiej Zolnierkiewicz <[email protected]>
Thu, 11 Apr 2019 17:25:12 +0000 (19:25 +0200)
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/video/fbdev/atmel_lcdfb.c: In function 'atmel_lcdfb_remove':
drivers/video/fbdev/atmel_lcdfb.c:1255:28: warning:
 variable 'pdata' set but not used [-Wunused-but-set-variable]

It's not used since commit 42110e91de7f ("video: atmel_lcdfb: introduce
atmel_lcdfb_power_control")

Signed-off-by: YueHaibing <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Cc: Alexandre Belloni <[email protected]>
Cc: Ludovic Desroches <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
drivers/video/fbdev/atmel_lcdfb.c

index b8786ff62b874b33c034c06f15685e9b04935897..e67dfd94bf1d51d7d093f6f01e136aa84ad6eda9 100644 (file)
@@ -1252,12 +1252,10 @@ static int __exit atmel_lcdfb_remove(struct platform_device *pdev)
        struct device *dev = &pdev->dev;
        struct fb_info *info = dev_get_drvdata(dev);
        struct atmel_lcdfb_info *sinfo;
-       struct atmel_lcdfb_pdata *pdata;
 
        if (!info || !info->par)
                return 0;
        sinfo = info->par;
-       pdata = &sinfo->pdata;
 
        cancel_work_sync(&sinfo->task);
        exit_backlight(sinfo);
This page took 0.051904 seconds and 4 git commands to generate.