aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-03-15 15:49:55 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-03-15 15:49:55 +0000
commit3fee1bddbe8584e6c5663028cec7f81031fb9d2e (patch)
treefdffdc6ede86487024e5f27370aa9903aa6e14f9
parent3fa31714b95c1b8ba7019647a874e2800819b6ae (diff)
downloadupstream-3fee1bddbe8584e6c5663028cec7f81031fb9d2e.tar.gz
upstream-3fee1bddbe8584e6c5663028cec7f81031fb9d2e.tar.bz2
upstream-3fee1bddbe8584e6c5663028cec7f81031fb9d2e.zip
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 <juhosg@openwrt.org> SVN-Revision: 36042
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c4
1 files changed, 2 insertions, 2 deletions
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;