diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-08-21 18:31:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 14:58:55 -0400 |
commit | 55359021b9a75a6d61a49ca8b9a1209793cd55f7 (patch) | |
tree | 6629b914a76f169184e52bc08d9ef0a0316f1d33 /drivers/usb/gadget | |
parent | 095bc335360a51623dd8571839bbf465851a7f4b (diff) |
USB: fix signedness issue in drivers/usb/gadget/ether.c
another gcc 4.1 signdness warning:
drivers/usb/gadget/ether.c:2028: warning: comparison of unsigned expression < 0 is always false
length is assigned the value of usb_ep_queue() which returns an int.
Directly after this it is checked for < 0, which can never be true. Making
length an int makes the error check work again.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Acked-by: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/ether.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index fed484da593c..1cc3c0227d10 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c | |||
@@ -2014,7 +2014,7 @@ rndis_control_ack_complete (struct usb_ep *ep, struct usb_request *req) | |||
2014 | static int rndis_control_ack (struct net_device *net) | 2014 | static int rndis_control_ack (struct net_device *net) |
2015 | { | 2015 | { |
2016 | struct eth_dev *dev = netdev_priv(net); | 2016 | struct eth_dev *dev = netdev_priv(net); |
2017 | u32 length; | 2017 | int length; |
2018 | struct usb_request *resp = dev->stat_req; | 2018 | struct usb_request *resp = dev->stat_req; |
2019 | 2019 | ||
2020 | /* in case RNDIS calls this after disconnect */ | 2020 | /* in case RNDIS calls this after disconnect */ |