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:
3dc9f55
)
net: netcp: ethss: remove unnecessary pointer set to NULL
author
YueHaibing
<yuehaibing@huawei.com>
Thu, 31 May 2018 03:48:48 +0000
(11:48 +0800)
committer
David S. Miller
<davem@davemloft.net>
Sun, 3 Jun 2018 14:39:48 +0000
(10:39 -0400)
If statement has make sure the 'slave->phy' is NULL
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_ethss.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ti/netcp_ethss.c
b/drivers/net/ethernet/ti/netcp_ethss.c
index 6a728d35e7763b49b0dae8cd975c01ff1390930c..6e455a27a8de4021b9daf6549bb0222dbb17cfb4 100644
(file)
--- a/
drivers/net/ethernet/ti/netcp_ethss.c
+++ b/
drivers/net/ethernet/ti/netcp_ethss.c
@@
-3206,7
+3206,6
@@
static void init_secondary_ports(struct gbe_priv *gbe_dev,
if (!slave->phy) {
dev_err(dev, "phy not found for slave %d\n",
slave->slave_num);
- slave->phy = NULL;
} else {
dev_dbg(dev, "phy found: id is: 0x%s\n",
phydev_name(slave->phy));