Commit b1cb50be authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[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: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent a769de07
...@@ -480,7 +480,7 @@ static int redrat3_set_timeout(struct rc_dev *rc_dev, unsigned int timeoutns) ...@@ -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 redrat3_dev *rr3 = rc_dev->priv;
struct usb_device *udev = rr3->udev; struct usb_device *udev = rr3->udev;
struct device *dev = rr3->dev; struct device *dev = rr3->dev;
u32 *timeout; __be32 *timeout;
int ret; int ret;
timeout = kmalloc(sizeof(*timeout), GFP_KERNEL); timeout = kmalloc(sizeof(*timeout), GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment