]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
net/usb/kalmia: signedness bug in kalmia_bind()
authorDan Carpenter <error27@gmail.com>
Thu, 23 Jun 2011 10:15:39 +0000 (03:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jun 2011 10:15:39 +0000 (03:15 -0700)
"status" should be an int here for the error handling to work.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/kalmia.c

index d4edeb2af9beaadb0bf5941ac16372ee7b6bab82..a9b6c63d54e4ed9ed7622781ae88d4b835807662 100644 (file)
@@ -135,7 +135,7 @@ kalmia_init_and_get_ethernet_addr(struct usbnet *dev, u8 *ethernet_addr)
 static int
 kalmia_bind(struct usbnet *dev, struct usb_interface *intf)
 {
-       u8 status;
+       int status;
        u8 ethernet_addr[ETH_ALEN];
 
        /* Don't bind to AT command interface */