drivers/video/backlight/lm3630a_bl.c: fix signedness bug in lm3630a_chip_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 12 Nov 2013 23:08:59 +0000 (15:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:15 +0000 (12:09 +0900)
"rval" needs to be signed for the error handling to work.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/lm3630a_bl.c

index cf40cc8e662b54f23494b32e1ec8f8b1109663ad..200dca04383f3c3872b527e7f6228461e5635222 100644 (file)
@@ -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);