Skip to content

Commit

Permalink
s6gmac: fix error return code in s6gmac_probe()
Browse files Browse the repository at this point in the history
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Mar 22, 2013
1 parent d6a8c36 commit 43d6869
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/s6gmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@ static int s6gmac_probe(struct platform_device *pdev)
mb = mdiobus_alloc();
if (!mb) {
printk(KERN_ERR DRV_PRMT "error allocating mii bus\n");
res = -ENOMEM;
goto errmii;
}
mb->name = "s6gmac_mii";
Expand Down

0 comments on commit 43d6869

Please sign in to comment.