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: Colin Ian King <colin.king@canonical.com> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
fee5c1e4b7
commit
6a3827ea4e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue