]> git.karo-electronics.de Git - linux-beck.git/commit
netfilter: xt_multiport: Use switch case instead of multiple condition checks
authorGao Feng <fgao@ikuai8.com>
Mon, 26 Sep 2016 13:23:37 +0000 (21:23 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 26 Oct 2016 14:35:15 +0000 (16:35 +0200)
commitdd2602d00f80dd8bf30f083fde20b4fbbcf82266
tree50695717a20aed62f73299cb48958ba230564314
parent432490f9d455fb842d70219f22d9d2c812371676
netfilter: xt_multiport: Use switch case instead of multiple condition checks

There are multiple equality condition checks in the original codes, so it
is better to use switch case instead of them.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_multiport.c