wireless: at76c50x: signedness bug in at76_dfu_get_state()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 9 Aug 2012 06:57:30 +0000 (09:57 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Aug 2012 18:50:26 +0000 (14:50 -0400)
This return holds the number of bytes transfered (1 byte) or a negative
error code.  The type should be int instead of u8.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/at76c50x-usb.c

index efc162e0b511c6d67ecdd4d011caa84c84708b8b..88b8d64c90f1b49a302deaca3af07788ee4b27c1 100644 (file)
@@ -342,7 +342,7 @@ static int at76_dfu_get_status(struct usb_device *udev,
        return ret;
 }
 
-static u8 at76_dfu_get_state(struct usb_device *udev, u8 *state)
+static int at76_dfu_get_state(struct usb_device *udev, u8 *state)
 {
        int ret;