projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8cbcb0
)
net: dsa: lantiq_gswip: drop bogus drvdata check
author
Johan Hovold
<
[email protected]
>
Wed, 16 Jan 2019 10:23:35 +0000
(11:23 +0100)
committer
David S. Miller
<
[email protected]
>
Thu, 17 Jan 2019 20:12:19 +0000
(12:12 -0800)
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]
>
drivers/net/dsa/lantiq_gswip.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/lantiq_gswip.c
b/drivers/net/dsa/lantiq_gswip.c
index 5792674dd4e408e5883bb7bde76cf680ef7a9abb..27d092cab40eff58acd572336bb0cae12461b438 100644
(file)
--- 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);