projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d9bf43
)
net: altera_tse: fix connect_local_phy error path
author
Atsushi Nemoto
<
[email protected]
>
Mon, 21 Jan 2019 08:26:41 +0000
(17:26 +0900)
committer
David S. Miller
<
[email protected]
>
Wed, 23 Jan 2019 01:44:57 +0000
(17:44 -0800)
The connect_local_phy should return NULL (not negative errno) on
error, since its caller expects it.
Signed-off-by: Atsushi Nemoto <
[email protected]
>
Acked-by: Thor Thayer <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/altera/altera_tse_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/altera/altera_tse_main.c
b/drivers/net/ethernet/altera/altera_tse_main.c
index 02921d877c08a7a93556db45a116d78ed2c485cd..aa1d1f5339d2a4b78ee2092d0c9683e1262e2581 100644
(file)
--- a/
drivers/net/ethernet/altera/altera_tse_main.c
+++ b/
drivers/net/ethernet/altera/altera_tse_main.c
@@
-714,8
+714,10
@@
static struct phy_device *connect_local_phy(struct net_device *dev)
phydev = phy_connect(dev, phy_id_fmt, &altera_tse_adjust_link,
priv->phy_iface);
- if (IS_ERR(phydev))
+ if (IS_ERR(phydev))
{
netdev_err(dev, "Could not attach to PHY\n");
+ phydev = NULL;
+ }
} else {
int ret;