From: Dan Carpenter Date: Tue, 5 Nov 2013 05:56:17 +0000 (+1100) Subject: drivers/video/backlight/lm3630a_bl.c: fix signedness bug in lm3630a_chip_init() X-Git-Tag: next-20131105~2^2~174 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ab0c8e97fe7c0c82f8f51331f651ac48c3e60d5a;p=karo-tx-linux.git drivers/video/backlight/lm3630a_bl.c: fix signedness bug in lm3630a_chip_init() "rval" needs to be signed for the error handling to work. Signed-off-by: Dan Carpenter Acked-by: Jingoo Han Signed-off-by: Andrew Morton --- diff --git a/drivers/video/backlight/lm3630a_bl.c b/drivers/video/backlight/lm3630a_bl.c index cf40cc8e662b..200dca04383f 100644 --- a/drivers/video/backlight/lm3630a_bl.c +++ b/drivers/video/backlight/lm3630a_bl.c @@ -105,7 +105,7 @@ static int lm3630a_chip_init(struct lm3630a_chip *pchip) /* interrupt handling */ static void lm3630a_delayed_func(struct work_struct *work) { - unsigned int rval; + int rval; struct lm3630a_chip *pchip; pchip = container_of(work, struct lm3630a_chip, work.work);