[media] xc4000: shut up a bogus smatch message
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 19 Feb 2016 14:22:30 +0000 (12:22 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Feb 2016 10:14:02 +0000 (07:14 -0300)
smatch complains about:
drivers/media/tuners/xc4000.c:1511 xc4000_get_signal() warn: '~value << 3' 524280 can't fit into 65535 'value'

Remove the bogus complain.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/tuners/xc4000.c

index 219ebafae70fd3f9b8d1f5541d43100e7a73aa64..d95c7e082ccfe9cbf29b089273cf1febe702b044 100644 (file)
@@ -1508,7 +1508,7 @@ static int xc4000_get_signal(struct dvb_frontend *fe, u16 *strength)
        if (value >= 0x2000) {
                value = 0;
        } else {
-               value = ~value << 3;
+               value = (~value << 3) & 0xffff;
        }
 
        goto ret;