Skip to content

Commit

Permalink
bf_lpm_trie: remove unused variables (#1086)
Browse files Browse the repository at this point in the history
Fixes: #1085

Signed-off-by: Radostin Stoyanov <[email protected]>
  • Loading branch information
rst0git authored Feb 8, 2022
1 parent 7be04bf commit c76a03c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/bf_lpm_trie/bf_lpm_trie.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ bool bf_lpm_trie_lookup(const bf_lpm_trie_t *trie, const char *key,
const node_t *current_node = trie->root;
unsigned byte;
size_t key_width = trie->key_width_bytes;
value_t *pdata = NULL;
bool found = false;
int16_t i;
prefix_t *p;
Expand Down Expand Up @@ -371,8 +370,6 @@ bool bf_lpm_trie_delete(bf_lpm_trie_t *trie, const char *prefix,
int prefix_length) {
node_t *current_node = trie->root;
byte_t byte;
unsigned short prefix_key;
value_t *pdata = NULL;

while(prefix_length >= 8) {
byte = (byte_t) *prefix;
Expand Down

0 comments on commit c76a03c

Please sign in to comment.