Commit 8bb18f69 authored by Johan Hovold's avatar Johan Hovold Committed by David S. Miller
Browse files

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: default avatarJohan Hovold <johan@kernel.org>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Acked-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c8cbcb0d
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);