backlight: lcd - Fix wrong sizeof
authorJean Delvare <khali@linux-fr.org>
Fri, 2 Oct 2009 09:28:18 +0000 (11:28 +0200)
committerRichard 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

index b644947..a482dd7 100644 (file)
@@ -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);
 }