From: Dan Carpenter Date: Tue, 12 Nov 2013 23:08:59 +0000 (-0800) Subject: drivers/video/backlight/lm3630a_bl.c: fix signedness bug in lm3630a_chip_init() X-Git-Tag: v4.9.8~7478^2~156 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a0c316bf3ccd910dc58ec62465ff620c664b5e4;p=platform%2Fkernel%2Flinux-rpi3.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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/backlight/lm3630a_bl.c b/drivers/video/backlight/lm3630a_bl.c index cf40cc8..200dca0 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);