USB: mcs7830: return negative if auto negotiate fails
authorDan Carpenter <error27@gmail.com>
Fri, 17 Dec 2010 03:25:43 +0000 (03:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Dec 2010 18:21:12 +0000 (10:21 -0800)
commit0e214ad81545a35c5e62a4c2d6cf7275fd7a545f
tree8327c0394729760d43ba7ba1548d9afbfba9670c
parentfdac1e0697356ac212259f2147aa60c72e334861
USB: mcs7830: return negative if auto negotiate fails

The original code returns 0 on success and 1 on failure.  In fact, at
this point, "ret" is already either zero or a negative error code so
we can just return it directly.

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