mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-09-20 21:54:23 +00:00
backlight: lcd - Fix wrong sizeof
commit 1e0fa6bd8c7468067f2e988c7a416dafd0651c34 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4874849b30
commit
176336ff11
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user