netfilter: nat: remove unnecessary 'else if' branch
authorXiaozhou Liu <liuxiaozhou@bytedance.com>
Wed, 5 Dec 2018 15:50:15 +0000 (23:50 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 17 Dec 2018 22:31:03 +0000 (23:31 +0100)
commitb635cbf68ff35817d5a1634b0ade41f96ef70daf
tree89925fa1b65e5b28d22cdc52aa6335f4686efa23
parent00ec3ab0601280d00978ac4245a62b470cfa81bb
netfilter: nat: remove unnecessary 'else if' branch

Since a pseudo-random starting point is used in finding a port in
the default case, that 'else if' branch above is no longer a necessity.
So remove it to simplify code.

Signed-off-by: Xiaozhou Liu <liuxiaozhou@bytedance.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_nat_proto_common.c