OSDN Git Service

ipv4: remove redundant assignment to n
authorColin Ian King <colin.king@canonical.com>
Fri, 24 May 2019 21:56:58 +0000 (22:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 May 2019 05:11:58 +0000 (22:11 -0700)
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>
net/ipv4/fib_trie.c

index ea7df7e..b53ecef 100644 (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;