Skip to content

Commit 8bb18f6

Browse files
jhovolddavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Acked-by: Hauke Mehrtens <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c8cbcb0 commit 8bb18f6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/net/dsa/lantiq_gswip.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,9 +1126,6 @@ static int gswip_remove(struct platform_device *pdev)
11261126
struct gswip_priv *priv = platform_get_drvdata(pdev);
11271127
int i;
11281128

1129-
if (!priv)
1130-
return 0;
1131-
11321129
/* disable the switch */
11331130
gswip_mdio_mask(priv, GSWIP_MDIO_GLOB_ENABLE, 0, GSWIP_MDIO_GLOB);
11341131

0 commit comments

Comments
 (0)