wireless: at76c50x: signedness bug in at76_dfu_get_state()
Subsystems (2)
PATCH 1/1 wireless: at76c50x: signedness bug in at76_dfu_get_state()
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 <[email protected]>
drivers/net/wireless/at76c50x-usb.c +1 -1
@@ -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;
Quoted 4 lines · On Thu, 9 Aug 2012 09:57:30 +0300 Dan Carpenter <[email protected]>…
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 <[email protected]>
Acked-by Pavel Roskin <[email protected]>
Nice catch, thanks!
Signature · 2 lines
Regards, Pavel Roskin