OSDN Git Service

net: remove unused netdev_unregistering()
authorJuhee Kang <claudiajkang@gmail.com>
Thu, 27 Oct 2022 16:04:24 +0000 (01:04 +0900)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Oct 2022 21:56:39 +0000 (21:56 +0000)
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.

Signed-off-by: Juhee Kang <claudiajkang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index eddf8ee..99e58b7 100644 (file)
@@ -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) {