Skip to contentSkip to conversation

wireless: at76c50x: signedness bug in at76_dfu_get_state()

PATCH In review Dan Carpenter 2 participants 2 messages Aug 9, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

drivers/net/wireless/at76c50x-usb.c +1 -1
index efc162e..88b8d64 100644
@@ -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;