net/macb: fix error return code in macb_probe()
authorNicolas Ferre <nicolas.ferre@atmel.com>
Sun, 14 Apr 2013 22:04:33 +0000 (22:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Apr 2013 18:09:37 +0000 (14:09 -0400)
commit72ca820bdb06bd1fef56aad07e0e045260bddb4e
tree49c91b520338a5467288bb74f405fb7d793d4e88
parentab09a6d0d38fc0da11e4cd57ec7f9fcfd16d335d
net/macb: fix error return code in macb_probe()

Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Original-idea-by: <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c