[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220928161740.1267-1-claudiajkang@gmail.com>
Date: Thu, 29 Sep 2022 01:17:40 +0900
From: Juhee Kang <claudiajkang@...il.com>
To: netdev@...r.kernel.org, simon.horman@...igine.com, kuba@...nel.org,
davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com
Cc: skhan@...uxfoundation.org, Juhee Kang <claudiajkang@...il.com>
Subject: [PATCH net-next v2] net: remove unused netdev_unregistering()
A helper function which is netdev_unregistering on nedevice.h is
no loger used. Thus, netdev_unregistering removes from netdevice.h.
Signed-off-by: Juhee Kang <claudiajkang@...il.com>
---
v2:
- v1 link : https://lore.kernel.org/netdev/20220923160937.1912-1-claudiajkang@gmail.com/
- Remove netdev_unregistering().
include/linux/netdevice.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 9f42fc871c3b..66d10bcaa6f8 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -5100,11 +5100,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) {
--
2.34.1
Powered by blists - more mailing lists