aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-09-25 23:54:36 +0100
committerHelge Deller <[email protected]>2022-01-30 19:58:32 +0100
commit6a3827ea4e2bccf89aa74654afbaf627e3dc64c9 (patch)
tree98f924785f90ccb50ed0060c592ff7c9873e69ad
parentfee5c1e4b789e41719af9fee0e2dd397cd31988f (diff)
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 <[email protected]> Signed-off-by: Helge Deller <[email protected]>
-rw-r--r--drivers/video/fbdev/pxa168fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/pxa168fb.c b/drivers/video/fbdev/pxa168fb.c
index 35cf806a9219..c25739f6934d 100644
--- a/drivers/video/fbdev/pxa168fb.c
+++ b/drivers/video/fbdev/pxa168fb.c
@@ -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;