提交 6a3827ea 编写于 作者: C Colin Ian King 提交者: Helge Deller

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: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NHelge Deller <deller@gmx.de>
上级 fee5c1e4
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册