From: Dan Carpenter Date: Wed, 3 Jul 2013 03:32:39 +0000 (-0700) Subject: Input: cyttsp4 - silence shift wrap warning X-Git-Tag: v3.11-rc1~86^2~6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0fb82ec0268b5e46b0fefc677c9fa62707c61c67;p=karo-tx-linux.git Input: cyttsp4 - silence shift wrap warning "*max" is a size_t (long) type but "1" is an int so static checkers complain that the shift could wrap. Signed-off-by: Dan Carpenter Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c index 963da052c15e..7aa4a349a07e 100644 --- a/drivers/input/touchscreen/cyttsp4_core.c +++ b/drivers/input/touchscreen/cyttsp4_core.c @@ -153,7 +153,7 @@ static int cyttsp4_hw_reset(struct cyttsp4 *cd) */ static int cyttsp4_bits_2_bytes(unsigned int nbits, size_t *max) { - *max = 1 << nbits; + *max = 1UL << nbits; return (nbits + 7) / 8; }