V4L/DVB: hdpvr-video: cleanup signedness
authorMárton Németh <nm127@freemail.hu>
Sat, 23 Jan 2010 13:44:34 +0000 (14:44 +0100)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:53 +0000 (15:10 -0300)
The fifth parameter of usb_bulk_msg() is a pointer to signed
(see <linux/usb.h>) so also call this function with pointer to signed.

This will remove the following sparse warning (see "make C=1"):
 * warning: incorrect type in argument 5 (different signedness)
       expected int *actual_length
       got unsigned int *<noident>

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/hdpvr/hdpvr-video.c

index fdd782039e9de4d266ac6abeade64045858256d4..1c49c07712d800af49c1488ba49cba4356b5ad49 100644 (file)
@@ -302,7 +302,8 @@ static int hdpvr_start_streaming(struct hdpvr_device *dev)
 /* function expects dev->io_mutex to be hold by caller */
 static int hdpvr_stop_streaming(struct hdpvr_device *dev)
 {
-       uint actual_length, c = 0;
+       int actual_length;
+       uint c = 0;
        u8 *buf;
 
        if (dev->status == STATUS_IDLE)