diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index 1d77341a8a..7cb5186f34 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.c +++ b/target/linux/generic/files/drivers/net/phy/ar8216.c @@ -1127,9 +1127,9 @@ ar8327_init_port(struct ar8xxx_priv *priv, int port) pdata = priv->phy->dev.platform_data; - if (pdata && port == AR8216_PORT_CPU) + if (port == AR8216_PORT_CPU) cfg = &pdata->port0_cfg; - else if (pdata && port == 6) + else if (port == 6) cfg = &pdata->port6_cfg; else cfg = NULL;