mirror of
https://github.com/torvalds/linux.git
synced 2024-12-06 19:11:31 +00:00
[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 <mchehab@osg.samsung.com>
This commit is contained in:
parent
1011d24a21
commit
fb9b1641ba
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user