Commit 9ff3dd7b authored by Claudiu Manoil's avatar Claudiu Manoil Committed by David S. Miller

enetc: Drop redundant device node check

The existence of the DT port node is the first thing checked
at probe time, and probing won't reach this point if the node
is missing.
Signed-off-by: default avatarClaudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1e09e581
...@@ -797,11 +797,6 @@ static int enetc_of_get_phy(struct enetc_ndev_priv *priv) ...@@ -797,11 +797,6 @@ static int enetc_of_get_phy(struct enetc_ndev_priv *priv)
struct device_node *mdio_np; struct device_node *mdio_np;
int err; int err;
if (!np) {
dev_err(priv->dev, "missing ENETC port node\n");
return -ENODEV;
}
priv->phy_node = of_parse_phandle(np, "phy-handle", 0); priv->phy_node = of_parse_phandle(np, "phy-handle", 0);
if (!priv->phy_node) { if (!priv->phy_node) {
if (!of_phy_is_fixed_link(np)) { if (!of_phy_is_fixed_link(np)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment