1
0
Fork 0

[media] redrat3: fix sparse warning

Fix this sparse warning:

drivers/media/rc/redrat3.c:490:18: warning: incorrect type in assignment (different base types)
drivers/media/rc/redrat3.c:495:9: warning: cast to restricted __be32

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
hifive-unleashed-5.1
Hans Verkuil 2016-08-23 03:48:37 -03:00 committed by Mauro Carvalho Chehab
parent a769de07ed
commit b1cb50beaf
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ static int redrat3_set_timeout(struct rc_dev *rc_dev, unsigned int timeoutns)
struct redrat3_dev *rr3 = rc_dev->priv;
struct usb_device *udev = rr3->udev;
struct device *dev = rr3->dev;
u32 *timeout;
__be32 *timeout;
int ret;
timeout = kmalloc(sizeof(*timeout), GFP_KERNEL);