[media] rc-main: Fix rc_type handling
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 5 Nov 2014 11:28:01 +0000 (09:28 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 5 Nov 2014 11:28:01 +0000 (09:28 -0200)
As reported by smatch:
drivers/media/rc/rc-main.c:1426 rc_register_device() warn: should '1 << rc_map->rc_type' be a 64 bit type?

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

index 296de853a25d184c33cbd2d0513d042978db3494..66eabc5dd000a762985481b8cae26d68400c6a1e 100644 (file)
@@ -1423,7 +1423,7 @@ int rc_register_device(struct rc_dev *dev)
        }
 
        if (dev->change_protocol) {
-               u64 rc_type = (1 << rc_map->rc_type);
+               u64 rc_type = (1ll << rc_map->rc_type);
                rc = dev->change_protocol(dev, &rc_type);
                if (rc < 0)
                        goto out_raw;