video: au1100fb: Delete an unnecessary variable initialisation in au1100fb_drv_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 28 Mar 2018 14:34:29 +0000 (16:34 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 28 Mar 2018 14:34:29 +0000 (16:34 +0200)
The local variable "fbdev" will be reassigned by a following statement.
Thus omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/au1100fb.c

index 1e5b872f0da6832d9021bd465e390fdfd8a879c2..7c9a672e9811758f378a328790d5aeae3faf383b 100644 (file)
@@ -410,7 +410,7 @@ static int au1100fb_setup(struct au1100fb_device *fbdev)
 
 static int au1100fb_drv_probe(struct platform_device *dev)
 {
-       struct au1100fb_device *fbdev = NULL;
+       struct au1100fb_device *fbdev;
        struct resource *regs_res;
        unsigned long page;
        struct clk *c;