diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-05-24 22:56:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-26 22:11:58 -0700 |
commit | df80152265cd8d3c61f4f7b9146f28967930fcc4 (patch) | |
tree | 89fc40e7149cfbdf409e41f260fb40188add0711 /net/ipv4/fib_trie.c | |
parent | 476cc6c964a92a67aeec1597d6d40f5bbbdf1b03 (diff) | |
download | linux-df80152265cd8d3c61f4f7b9146f28967930fcc4.tar.gz linux-df80152265cd8d3c61f4f7b9146f28967930fcc4.tar.bz2 linux-df80152265cd8d3c61f4f7b9146f28967930fcc4.zip |
ipv4: remove redundant assignment to n
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: 1bff1a0c9bbda ("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>
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r-- | net/ipv4/fib_trie.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index ea7df7ebf597..b53ecef89d59 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c @@ -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; |