Skip to content

Commit a180dea

Browse files
Tomasz Bursztykajukkar
authored andcommitted
net: Remove duplicate const specifier
Jira: ZEP-1723 Change-Id: I0b305f7104a7a6248852846542b6894c86bfc1d8 Signed-off-by: Tomasz Bursztyka <[email protected]>
1 parent 14034ac commit a180dea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/net/net_l2.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct net_l2 {
5858

5959
#define NET_L2_GET_NAME(_name) (__net_l2_##_name)
6060
#define NET_L2_DECLARE_PUBLIC(_name) \
61-
extern const struct net_l2 const NET_L2_GET_NAME(_name)
61+
extern const struct net_l2 NET_L2_GET_NAME(_name)
6262
#define NET_L2_GET_CTX_TYPE(_name) _name##_CTX_TYPE
6363

6464
extern struct net_l2 __net_l2_start[];
@@ -95,7 +95,7 @@ NET_L2_DECLARE_PUBLIC(IEEE802154_L2);
9595
extern struct net_l2 __net_l2_end[];
9696

9797
#define NET_L2_INIT(_name, _recv_fn, _send_fn, _reserve_fn, _enable_fn) \
98-
const struct net_l2 const (NET_L2_GET_NAME(_name)) __used \
98+
const struct net_l2 (NET_L2_GET_NAME(_name)) __used \
9999
__attribute__((__section__(".net_l2.init"))) = { \
100100
.recv = (_recv_fn), \
101101
.send = (_send_fn), \

0 commit comments

Comments
 (0)