net: remove unusged netdev_unregistering()
Subsystems (2)
PATCH v3 1/1 net: remove unusged netdev_unregistering()
Currently, use dev->reg_state == NETREG_UNREGISTERING to check the status which is NETREG_UNREGISTERING, rather than using netdev_unregistering. Also, A helper function which is netdev_unregistering on nedevice.h is no longer used. Thus, netdev_unregistering removes from netdevice.h.
---
v3:
- v2 link : https://lore.kernel.org/netdev/[email protected]/
- Apply review. Write commit message more specific.
v2:
- v1 link : https://lore.kernel.org/netdev/[email protected]/
- Apply review. Remove netdev_unregistering().
v1:
- Replace open code which is dev->reg_state == NETREG_UNREGISTERING to netdev_unregistering() helper function.
include/linux/netdevice.h | 5 ----- 1 file changed, 5 deletions(-)
include/linux/netdevice.h +0 -5
@@ -5101,11 +5101,6 @@ static inline const char *netdev_name(const struct net_device *dev)return dev->name; } -static inline bool netdev_unregistering (const struct net_device *dev) -{ -return dev->reg_state ==NETREG_UNREGISTERING ; -} -static inline const char *netdev_reg_state (const struct net_device *dev) {switch (dev->reg_state) {
Signature · 1 line
2.34.1
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:
Quoted 8 lines · On Fri, 28 Oct 2022 01:04:24 +0900 you wrote:
Currently, use
dev->reg_state==NETREG_UNREGISTERINGto check the status which isNETREG_UNREGISTERING, rather than usingnetdev_unregistering. Also, A helper function which isnetdev_unregisteringonnedevice.his no longer used. Thus,netdev_unregisteringremoves fromnetdevice.h.Signed-off-by Juhee Kang <[email protected]>[...]
Here is the summary with links:
- [net-next,v3] net: remove unusged netdev_unregistering()
https://git.kernel.org/netdev/net-next/c/f3fb589aeb88
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html