diff options
author | Johan Hovold <johan@kernel.org> | 2019-01-16 11:23:35 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-17 12:12:19 -0800 |
commit | 8bb18f69c71f5fedaded2d0337dd8a0d15b51ea5 (patch) | |
tree | dad4f5a914388dfc9891d285a21c5b4372587479 /drivers/net | |
parent | c8cbcb0d8bd72d44fad1a5ddc348ac10e0fb1b37 (diff) |
net: dsa: lantiq_gswip: drop bogus drvdata check
The platform-device driver data is set on successful probe and will
never be NULL on remove (or we have much bigger problems).
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/dsa/lantiq_gswip.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswip.c index 5792674dd4e4..27d092cab40e 100644 --- a/drivers/net/dsa/lantiq_gswip.c +++ b/drivers/net/dsa/lantiq_gswip.c @@ -1126,9 +1126,6 @@ static int gswip_remove(struct platform_device *pdev) struct gswip_priv *priv = platform_get_drvdata(pdev); int i; - if (!priv) - return 0; - /* disable the switch */ gswip_mdio_mask(priv, GSWIP_MDIO_GLOB_ENABLE, 0, GSWIP_MDIO_GLOB); |