]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: arp_tables: remove redundant check on ret being non-zero
authorColin Ian King <colin.king@canonical.com>
Tue, 28 Feb 2017 11:31:15 +0000 (11:31 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 6 Mar 2017 17:04:37 +0000 (18:04 +0100)
commitc0514b9c7da77955c8302fe6bd7a63d14f3c5526
treef2a3d857d155dc9d25314a0dc374c2588f8b17d2
parentd620f01db07e73e58b625d1fbf950d85a83ee3be
netfilter: arp_tables: remove redundant check on ret being non-zero

ret is initialized to zero and if it is set to non-zero in the
xt_entry_foreach loop then we exit via the out_free label. Hence
the check for ret being non-zero is redundant and can be removed.

Detected by CoverityScan, CID#1357132 ("Logically Dead Code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/arp_tables.c