projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
155d940
)
bfin_mac: fix error return code in bfin_mac_probe()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Tue, 7 May 2013 02:23:38 +0000
(
02:23
+0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 8 May 2013 20:13:30 +0000
(13:13 -0700)
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>
drivers/net/ethernet/adi/bfin_mac.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/adi/bfin_mac.c
b/drivers/net/ethernet/adi/bfin_mac.c
index
ee70577
..
dada66b
100644
(file)
--- 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;
}