Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e0fa6bd authored by Jean Delvare's avatar Jean Delvare Committed by Richard Purdie
Browse files

backlight: lcd - Fix wrong sizeof



Which is why I have always preferred sizeof(struct foo) over
sizeof(var).

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
parent a9366e61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}