usbnet: smsc95xx: silence an uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 May 2016 06:22:01 +0000 (09:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 20:58:57 +0000 (16:58 -0400)
commit5a36b68b670ebdf19eaedd4f859810293a3d1dc1
treeae51cb54e4e31140a1e546a4de36badf39c97ef2
parent58ef6a3f64bd837e107a2bbf0571574850a32b8c
usbnet: smsc95xx: silence an uninitialized variable warning

If the call to fn() fails then "buf" is uninitialized.  Just return the
error code in that case.

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