summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorMadalin Bucur <madalin.bucur@freescale.com>2014-02-07 13:15:29 (GMT)
committerMadalin-Cristian Bucur <madalin.bucur@freescale.com>2014-02-10 09:24:53 (GMT)
commitc76e828d42ba80d46cc2b1289076f96f9cd8d602 (patch)
tree9f292c7a2be7a0ec9b44a3532e027874c060190c /drivers/net/ethernet
parente57d3f0ecee066b63ec95acd004099ca5bb11237 (diff)
downloadlinux-fsl-qoriq-c76e828d42ba80d46cc2b1289076f96f9cd8d602.tar.xz
dpaa_eth: remove unnecessary check
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Change-Id: Ie97ed82463c34a6472b4f13a4ddfb6c83c6d91da Reviewed-on: http://git.am.freescale.net:8181/8653 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c
index a8c5bf1..293eb58 100644
--- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c
+++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c
@@ -309,8 +309,7 @@ static int __cold dpa_eth_proxy_remove(struct platform_device *of_dev)
dev = &of_dev->dev;
dev_set_drvdata(dev, NULL);
- if (proxy_dev)
- kfree(proxy_dev);
+ kfree(proxy_dev);
return 0;
}