]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mempool: add 'else' to split mutually exclusive case
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 13 Oct 2020 23:57:14 +0000 (16:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 14 Oct 2020 01:38:34 +0000 (18:38 -0700)
commit1af388f16a85f916dce23b72db85211a574e1cc0
tree91834edb7d541ea9dca0504ac898f3b48fdfedcd
parente5170efdcaf7a69c1f4e830ac3b7af78f95ca62d
mm/mempool: add 'else' to split mutually exclusive case

Add else to split mutually exclusive case and avoid some unnecessary check.
It doesn't seem to change code generation (compiler is smart), but I think
it helps readability.

[akpm@linux-foundation.org: fix comment location]

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20200924111641.28922-1-linmiaohe@huawei.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempool.c