mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Acked-by: David Brownell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
095bc33536
commit
55359021b9
1 changed files with 1 additions and 1 deletions
|
|
@ -2014,7 +2014,7 @@ rndis_control_ack_complete (struct usb_ep *ep, struct usb_request *req)
|
|||
static int rndis_control_ack (struct net_device *net)
|
||||
{
|
||||
struct eth_dev *dev = netdev_priv(net);
|
||||
u32 length;
|
||||
int length;
|
||||
struct usb_request *resp = dev->stat_req;
|
||||
|
||||
/* in case RNDIS calls this after disconnect */
|
||||
|
|
|
|||
Loading…
Reference in a new issue