diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-19 14:22:30 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-23 10:14:02 (GMT) |
commit | dfa7ba5f61f6773cd1ebcaf6672d9c179b32d1b0 (patch) | |
tree | 8e81f0f1547015ae830b37cd5d5302522466be38 /drivers/media/tuners | |
parent | f7b5dff0b59b20469b2a4889e6170c0069d37c8d (diff) | |
download | linux-dfa7ba5f61f6773cd1ebcaf6672d9c179b32d1b0.tar.xz |
[media] xc4000: shut up a bogus smatch message
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>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r-- | drivers/media/tuners/xc4000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/tuners/xc4000.c b/drivers/media/tuners/xc4000.c index 219ebaf..d95c7e0 100644 --- a/drivers/media/tuners/xc4000.c +++ b/drivers/media/tuners/xc4000.c @@ -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; |