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:
8d71397
)
net: hns: bug fix for return values
author
Qianqian Xie
<
[email protected]
>
Thu, 24 Mar 2016 11:08:02 +0000
(19:08 +0800)
committer
David S. Miller
<
[email protected]
>
Thu, 24 Mar 2016 18:33:06 +0000
(14:33 -0400)
The return values in the first two functions mdiobus_write()
are ignored. The patch will fix it.
Signed-off-by: Qianqian Xie <
[email protected]
>
Signed-off-by: Yisen Zhuang <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
b/drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
index 9c3ba65988e1ea604578e3fe52523ee8afb8d06e..0e7da3f0a564186e2930a90e154c2ca503bff361 100644
(file)
--- a/
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
+++ b/
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
@@
-1013,8
+1013,8
@@
int hns_phy_led_set(struct net_device *netdev, int value)
struct phy_device *phy_dev = priv->phy;
retval = phy_write(phy_dev, HNS_PHY_PAGE_REG, HNS_PHY_PAGE_LED);
- retval = phy_write(phy_dev, HNS_LED_FC_REG, value);
- retval = phy_write(phy_dev, HNS_PHY_PAGE_REG, HNS_PHY_PAGE_COPPER);
+ retval
|
= phy_write(phy_dev, HNS_LED_FC_REG, value);
+ retval
|
= phy_write(phy_dev, HNS_PHY_PAGE_REG, HNS_PHY_PAGE_COPPER);
if (retval) {
netdev_err(netdev, "mdiobus_write fail !\n");
return retval;