projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: hisilicon: fix the return value handle and remove redundant netdev_err() for...
[linux-2.6-microblaze.git]
/
drivers
/
net
/
ethernet
/
hisilicon
/
hip04_eth.c
diff --git
a/drivers/net/ethernet/hisilicon/hip04_eth.c
b/drivers/net/ethernet/hisilicon/hip04_eth.c
index
50c3f5d
..
ecf92a5
100644
(file)
--- a/
drivers/net/ethernet/hisilicon/hip04_eth.c
+++ b/
drivers/net/ethernet/hisilicon/hip04_eth.c
@@
-960,8
+960,8
@@
static int hip04_mac_probe(struct platform_device *pdev)
}
irq = platform_get_irq(pdev, 0);
- if (irq <
=
0) {
- ret =
-EINVAL
;
+ if (irq < 0) {
+ ret =
irq
;
goto init_fail;
}