projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9366e6
)
backlight: lcd - Fix wrong sizeof
author
Jean Delvare
<khali@linux-fr.org>
Fri, 2 Oct 2009 09:28:18 +0000
(11:28 +0200)
committer
Richard Purdie
<rpurdie@linux.intel.com>
Mon, 16 Nov 2009 11:50:41 +0000
(11:50 +0000)
Which is why I have always preferred sizeof(struct foo) over
sizeof(var).
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/video/backlight/lcd.c
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/lcd.c
b/drivers/video/backlight/lcd.c
index
b644947
..
a482dd7
100644
(file)
--- a/
drivers/video/backlight/lcd.c
+++ b/
drivers/video/backlight/lcd.c
@@
-56,7
+56,7
@@
static int fb_notifier_callback(struct notifier_block *self,
static int lcd_register_fb(struct lcd_device *ld)
{
- memset(&ld->fb_notif, 0, sizeof(
&
ld->fb_notif));
+ memset(&ld->fb_notif, 0, sizeof(ld->fb_notif));
ld->fb_notif.notifier_call = fb_notifier_callback;
return fb_register_client(&ld->fb_notif);
}