Преглед изворни кода

generic: ar8216: remove superfluous pdata checks

The presence of the platform data is already verified in
ar8327_hw_init, and the driver does not start without that
anyway.

Signed-off-by: Gabor Juhos <[email protected]>

SVN-Revision: 36042
Gabor Juhos пре 12 година
родитељ
комит
3fee1bddbe
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      target/linux/generic/files/drivers/net/phy/ar8216.c

+ 2 - 2
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;