]> git.baikalelectronics.ru Git - kernel.git/commit
mm/zsmalloc: use BUG_ON instead of if condition followed by BUG.
authorzhouchuangao <zhouchuangao@vivo.com>
Wed, 5 May 2021 01:40:00 +0000 (18:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 5 May 2021 18:27:27 +0000 (11:27 -0700)
commit1dedf75f872a9117c2c8373b5d245bb2fc3fc141
tree6b7335a1c81636255207de32b3df75832b615e0c
parentc904287972e1eb79f6a9c8cf4e902bda32b5491e
mm/zsmalloc: use BUG_ON instead of if condition followed by BUG.

It can be optimized at compile time.

Link: https://lkml.kernel.org/r/1616727798-9110-1-git-send-email-zhouchuangao@vivo.com
Signed-off-by: zhouchuangao <zhouchuangao@vivo.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zsmalloc.c