projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fee5c1e
)
video: fbdev: pxa168fb: Initialize pointers with NULL and not plain integer 0
author
Colin Ian King
<colin.king@canonical.com>
Sat, 25 Sep 2021 22:54:36 +0000
(23:54 +0100)
committer
Helge Deller
<deller@gmx.de>
Sun, 30 Jan 2022 18:58:32 +0000
(19:58 +0100)
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>
drivers/video/fbdev/pxa168fb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/fbdev/pxa168fb.c
b/drivers/video/fbdev/pxa168fb.c
index 35cf806a92199e907ab602e1b55c270edb5c5151..c25739f6934d93324dfd529a47d43d366a745c4d 100644
(file)
--- 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;