Skip to content

Commit

Permalink
ipv4: remove redundant assignment to n
Browse files Browse the repository at this point in the history
The pointer n is being assigned a value however this value is
never read in the code block and the end of the code block
continues to the next loop iteration. Clean up the code by
removing the redundant assignment.

Fixes: 1bff1a0 ("ipv4: Add function to send route updates")
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Colin Ian King authored and David S. Miller committed May 27, 2019
1 parent 476cc6c commit df80152
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/ipv4/fib_trie.c
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,6 @@ static void __fib_info_notify_update(struct net *net, struct fib_table *tb,
if (IS_TRIE(pn))
break;

n = pn;
pn = node_parent(pn);
cindex = get_index(pkey, pn);
continue;
Expand Down

0 comments on commit df80152

Please sign in to comment.