summaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-15 15:49:55 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-15 15:49:55 +0000
commit884b112524ad5a6879f592badc0733acd658338b (patch)
treed03b53ccc9e26ea26eb6a7aed0cd3425edcb80d9 /target/linux
parent9e3d2eb93bde5c2627795a9706e81ef77e04275b (diff)
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36042 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-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 1d77341a8..7cb5186f3 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;