greth: Use return value of register_netdev
authorTobias Klauser <tklauser@distanz.ch>
Tue, 17 Aug 2010 06:11:24 +0000 (06:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Aug 2010 07:04:31 +0000 (00:04 -0700)
commitcb5d991a99104565f7b622b1b97587f4b1effa82
tree308ab62d0cbe1485a8fb463329ff1c05f808d9fd
parent900853a4db7098b0e58ddcb732632ac43a7b2148
greth: Use return value of register_netdev

Use the return value provided by register_netdev on error instead of
hard setting it to -ENOMEM.

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