From: Mauro Carvalho Chehab Date: Wed, 5 Nov 2014 11:28:01 +0000 (-0200) Subject: [media] rc-main: Fix rc_type handling X-Git-Tag: v4.9.8~4959^2~224 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb9b1641ba30385e1c142ecef2b631d31a881fd1;p=platform%2Fkernel%2Flinux-rpi3.git [media] rc-main: Fix rc_type handling 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 --- diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 296de85..66eabc5 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c @@ -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;