mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 10:38:44 -04:00
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:
committed by
Helge Deller
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;
|
||||
|
||||
Reference in New Issue
Block a user