]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/usb/misc/usbtest.c
USB: usbtest.c: unsigned retval makes ctrl_out return 0 in case of error
[linux-2.6.git] / drivers / usb / misc / usbtest.c
index 786e1dbe88ec4dbbd82484146ad77fa6d7444473..983e104dd4520653baa6f61c4ca2ccff10a16ba5 100644 (file)
@@ -1242,11 +1242,12 @@ done:
 static int ctrl_out (struct usbtest_dev *dev,
                unsigned count, unsigned length, unsigned vary)
 {
-       unsigned                i, j, len, retval;
+       unsigned                i, j, len;
+       int                     retval;
        u8                      *buf;
        char                    *what = "?";
        struct usb_device       *udev;
-       
+
        if (length < 1 || length > 0xffff || vary >= length)
                return -EINVAL;