sunhme: Use return value of register_netdev
authorTobias Klauser <tklauser@distanz.ch>
Tue, 17 Aug 2010 06:13:05 +0000 (06:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Aug 2010 07:04:32 +0000 (00:04 -0700)
commit0b29b894b17747f7fa0c5668281c68b8cde7647b
tree8352b30ae97b6b8e1460fc5865fe554890e500c4
parentcb5d991a99104565f7b622b1b97587f4b1effa82
sunhme: Use return value of register_netdev

Use the return value provided by register_netdev on error instead of
using a previously set value.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sunhme.c