Commit 6a3827ea authored by Colin Ian King's avatar Colin Ian King Committed by Helge Deller
Browse files

video: fbdev: pxa168fb: Initialize pointers with NULL and not plain integer 0



Pointers info and fbi are being initialized with plain integer zeros. Fix
this by initializing them with NULLs.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent fee5c1e4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -593,8 +593,8 @@ static void pxa168fb_init_mode(struct fb_info *info,
static int pxa168fb_probe(struct platform_device *pdev)
{
	struct pxa168fb_mach_info *mi;
	struct fb_info *info = 0;
	struct pxa168fb_info *fbi = 0;
	struct fb_info *info = NULL;
	struct pxa168fb_info *fbi = NULL;
	struct resource *res;
	struct clk *clk;
	int irq, ret;