]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: conntrack: use fallthrough to cleanup
authorJackie Liu <liuyun01@kylinos.cn>
Wed, 25 May 2022 02:32:15 +0000 (10:32 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 11 Jul 2022 14:25:13 +0000 (16:25 +0200)
commit4c813e4eaf80bf175af2003cad5c3fa25e2d7626
tree5d69b6689b7e1bf5ad89d3dd16d97d2379d9ddd1
parentcb517bb02a386ad049d74ae2ed6bac2a5fdb8488
netfilter: conntrack: use fallthrough to cleanup

These cases all use the same function. we can simplify the code through
fallthrough.

$ size net/netfilter/nf_conntrack_core.o

        text    data     bss     dec     hex filename
before  81601   81430     768  163799   27fd7 net/netfilter/nf_conntrack_core.o
after   80361   81430     768  162559   27aff net/netfilter/nf_conntrack_core.o

Arch: aarch64
Gcc : gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)

Reported-by: k2ci <kernel-bot@kylinos.cn>
Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_core.c