aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-07-10 16:32:51 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-12 10:54:45 -0400
commitd348446b8840602091872b8272855dee196f6dd5 (patch)
tree52822f855dd80de30de0dc2f1c7f26d109dfa00c /drivers/net/usb
parent064bff1c9f70ba495f83668a3ee2f10ea3f1c99c (diff)
smsc95xx: signedness bug in get_regs()
"retval" has to be a signed integer for the error handling to work. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/smsc95xx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index 05ecf14d6597..bd7cbaa688e4 100644
--- a/drivers/net/usb/smsc95xx.c
+++ b/drivers/net/usb/smsc95xx.c
@@ -589,7 +589,8 @@ smsc95xx_ethtool_getregs(struct net_device *netdev, struct ethtool_regs *regs,
589 void *buf) 589 void *buf)
590{ 590{
591 struct usbnet *dev = netdev_priv(netdev); 591 struct usbnet *dev = netdev_priv(netdev);
592 unsigned int i, j, retval; 592 unsigned int i, j;
593 int retval;
593 u32 *data = buf; 594 u32 *data = buf;
594 595
595 retval = smsc95xx_read_reg(dev, ID_REV, &regs->version); 596 retval = smsc95xx_read_reg(dev, ID_REV, &regs->version);