projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47f6aa1
)
net: dsa: loop: remove unnecessary dev_set_drvdata()
author
Yang Yingliang
<yangyingliang@huawei.com>
Wed, 21 Sep 2022 14:05:09 +0000
(22:05 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 23 Sep 2022 02:30:35 +0000
(19:30 -0700)
Remove unnecessary dev_set_drvdata() in ->remove(), the driver_data will
be set to NULL in device_unbind_cleanup() after calling ->remove().
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/dsa_loop.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/dsa_loop.c
b/drivers/net/dsa/dsa_loop.c
index
263e411
..
b9107fe
100644
(file)
--- a/
drivers/net/dsa/dsa_loop.c
+++ b/
drivers/net/dsa/dsa_loop.c
@@
-351,8
+351,6
@@
static void dsa_loop_drv_remove(struct mdio_device *mdiodev)
dsa_unregister_switch(ds);
dev_put(ps->netdev);
-
- dev_set_drvdata(&mdiodev->dev, NULL);
}
static void dsa_loop_drv_shutdown(struct mdio_device *mdiodev)