This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/media_tree.git tree:

Subject: [media] xc4000: shut up a bogus smatch message
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Fri Feb 19 12:22:30 2016 -0200

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 <[email protected]>

 drivers/media/tuners/xc4000.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=dfa7ba5f61f6773cd1ebcaf6672d9c179b32d1b0
diff --git a/drivers/media/tuners/xc4000.c b/drivers/media/tuners/xc4000.c
index 219ebafae70f..d95c7e082ccf 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;

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to