From: Axel Lin Date: Tue, 26 Jul 2011 00:11:59 +0000 (-0700) Subject: drivers/video/backlight/adp8860_bl.c: remove a redundant assignment for max_brightness X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6b19bad8b2d4cf7150b58ce6619b30364bdab1db;p=openwrt%2Fstaging%2Fblogic.git drivers/video/backlight/adp8860_bl.c: remove a redundant assignment for max_brightness We have set props.max_brightness before registering backlight device. Signed-off-by: Axel Lin Acked-by: Mike Frysinger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/backlight/adp8860_bl.c b/drivers/video/backlight/adp8860_bl.c index d2a96a421ffd..183b6f639852 100644 --- a/drivers/video/backlight/adp8860_bl.c +++ b/drivers/video/backlight/adp8860_bl.c @@ -722,8 +722,7 @@ static int __devinit adp8860_probe(struct i2c_client *client, goto out2; } - bl->props.max_brightness = - bl->props.brightness = ADP8860_MAX_BRIGHTNESS; + bl->props.brightness = ADP8860_MAX_BRIGHTNESS; data->bl = bl;