Skip to content

Commit d2bf3ae

Browse files
thugheskartben
authored andcommitted
net: ipv6: Remove unused function
Building with clang warns: subsys/net/ip/ipv6_nbr.c:137:31: error: unused function 'get_nbr_from_data' [-Werror,-Wunused-function] static inline struct net_nbr *get_nbr_from_data(struct net_ipv6_nbr_data ^ *data) Signed-off-by: Tom Hughes <[email protected]>
1 parent 4e11af7 commit d2bf3ae

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

subsys/net/ip/ipv6_nbr.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -135,21 +135,6 @@ static inline struct net_nbr *get_nbr(int idx)
135135
return &net_neighbor_pool[idx].nbr;
136136
}
137137

138-
static inline struct net_nbr *get_nbr_from_data(struct net_ipv6_nbr_data *data)
139-
{
140-
int i;
141-
142-
for (i = 0; i < CONFIG_NET_IPV6_MAX_NEIGHBORS; i++) {
143-
struct net_nbr *nbr = get_nbr(i);
144-
145-
if (nbr->data == (uint8_t *)data) {
146-
return nbr;
147-
}
148-
}
149-
150-
return NULL;
151-
}
152-
153138
static void ipv6_nbr_set_state(struct net_nbr *nbr,
154139
enum net_ipv6_nbr_state new_state)
155140
{

0 commit comments

Comments
 (0)