summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-05-07 04:23:38 +0200
committerDavid S. Miller <davem@davemloft.net>2013-05-08 22:13:30 +0200
commit2c006994520f3a4bb1d47a6afe5c58ff856497ce (patch)
tree26571dec3f79884a632d56771733b8e5e76cf490 /drivers/net/ethernet
parentsfc: fix return value check in efx_ptp_probe_channel() (diff)
downloadlinux-2c006994520f3a4bb1d47a6afe5c58ff856497ce.tar.xz
linux-2c006994520f3a4bb1d47a6afe5c58ff856497ce.zip
bfin_mac: fix error return code in bfin_mac_probe()
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/adi/bfin_mac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c
index ee705771bd2c..dada66bfe0d6 100644
--- a/drivers/net/ethernet/adi/bfin_mac.c
+++ b/drivers/net/ethernet/adi/bfin_mac.c
@@ -1700,7 +1700,8 @@ static int bfin_mac_probe(struct platform_device *pdev)
}
bfin_mac_hwtstamp_init(ndev);
- if (bfin_phc_init(ndev, &pdev->dev)) {
+ rc = bfin_phc_init(ndev, &pdev->dev);
+ if (rc) {
dev_err(&pdev->dev, "Cannot register PHC device!\n");
goto out_err_phc;
}