[media] redrat3: fix sparse warning
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 23 Aug 2016 06:48:37 +0000 (03:48 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 25 Aug 2016 12:46:39 +0000 (09:46 -0300)
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>
drivers/media/rc/redrat3.c

index ec8016d..8d7df6d 100644 (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);