1
0
Fork 0

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: 1bff1a0c9b ("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>
alistair/sunxi64-5.4-dsi
Colin Ian King 2019-05-24 22:56:58 +01:00 committed by David S. Miller
parent 476cc6c964
commit df80152265
1 changed files with 0 additions and 1 deletions

View File

@ -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;