Skip to contentSkip to conversation

net/ieee802154: remove unused macros to tame gcc

PATCH In review Alex Shi 2 participants 2 messages Nov 6, 2020

Subsystems (3)
lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 net/ieee802154: remove unused macros to tame gcc

Cc Alexander Aring <[email protected]>
Cc Stefan Schmidt <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Jakub Kicinski <[email protected]>
---
 net/ieee802154/nl802154.c | 4 ----
 1 file changed, 4 deletions(-)
net/ieee802154/nl802154.c +0 -4
index 7c5a1aa5adb4..1cebdcedc48c 100644
@@ -2098,11 +2098,7 @@ static int nl802154_del_llsec_seclevel(struct sk_buff *skb,
 #define NL802154_FLAG_NEED_NETDEV	0x02
 #define NL802154_FLAG_NEED_RTNL		0x04
 #define NL802154_FLAG_CHECK_NETDEV_UP	0x08
-#define NL802154_FLAG_NEED_NETDEV_UP	(NL802154_FLAG_NEED_NETDEV |\
-					 NL802154_FLAG_CHECK_NETDEV_UP)
 #define NL802154_FLAG_NEED_WPAN_DEV	0x10
-#define NL802154_FLAG_NEED_WPAN_DEV_UP	(NL802154_FLAG_NEED_WPAN_DEV |\
-					 NL802154_FLAG_CHECK_NETDEV_UP)
 
 static int nl802154_pre_doit(const struct genl_ops *ops, struct sk_buff *skb,
 			     struct genl_info *info)
Signature · 1 line
1.8.3.1
maintainer
#1 lore raw

Hello.

Quoted 19 lines · Alex Shi
Cc Alexander Aring <[email protected]>
Cc Stefan Schmidt <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Jakub Kicinski <[email protected]>
---
  net/ieee802154/nl802154.c | 4 ----
  1 file changed, 4 deletions(-)
net/ieee802154/nl802154.c +0 -0
index 7c5a1aa5adb4..1cebdcedc48c 100644
@@ -2098,11 +2098,7 @@ static int nl802154_del_llsec_seclevel(struct sk_buff *skb,
  #define NL802154_FLAG_NEED_NETDEV	0x02

net/ieee802154/nl802154.c static int nl802154_del_llsec_seclevel(struct sk_buff *skb, · line 2104

Quoted 10 lines
net/ieee802154/nl802154.c +0 -4
  #define NL802154_FLAG_NEED_RTNL		0x04
  #define NL802154_FLAG_CHECK_NETDEV_UP	0x08
-#define NL802154_FLAG_NEED_NETDEV_UP	(NL802154_FLAG_NEED_NETDEV |\
-					 NL802154_FLAG_CHECK_NETDEV_UP)
  #define NL802154_FLAG_NEED_WPAN_DEV	0x10
-#define NL802154_FLAG_NEED_WPAN_DEV_UP	(NL802154_FLAG_NEED_WPAN_DEV |\
-					 NL802154_FLAG_CHECK_NETDEV_UP)
 
  static int nl802154_pre_doit(const struct genl_ops *ops, struct sk_buff *skb,
  			     struct genl_info *info)

This patch has been applied to the wpan tree and will be part of the next pull request to net. Thanks!

regards
Stefan Schmidt