]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet/smsc75xx: silence uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 May 2016 06:21:02 +0000 (09:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 20:58:56 +0000 (16:58 -0400)
commite6c7a5e4266901846c2f86d9e0c842a33c8f4ad2
tree786af91757a76e41fbe6554bef09f4602f856d31
parentc73c730adbfc3552dd402366223c607fc4fb0c68
usbnet/smsc75xx: silence uninitialized variable warning

If the fn() calls fail then "buf" is uninitialized.  Just return early
in that situation.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc75xx.c