OSDN Git Service

nilfs2: delete unnecessary checks before brelse()
authorMinghao Chi <chi.minghao@zte.com.cn>
Wed, 21 Sep 2022 03:48:02 +0000 (12:48 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:21:44 +0000 (14:21 -0700)
commit0badb2e46a7699d09ef09a2c7f8f4fe66c15e606
tree66489a81dca2be5c5828d8ccb032b5d2005cd5d5
parentbd17e036b495bebbf07a5fc814c868e30e1dc131
nilfs2: delete unnecessary checks before brelse()

Patch series "nilfs2 minor amendments".

This patch (of 2):

The brelse() inline function tests whether its argument is NULL and then
returns immediately.  Thus remove the tests which are not needed around
the shown calls.

Link: https://lkml.kernel.org/r/20220921034803.2476-1-konishi.ryusuke@gmail.com
Link: https://lkml.kernel.org/r/20220819081700.96279-1-chi.minghao@zte.com.cn
Link: https://lkml.kernel.org/r/20220921034803.2476-2-konishi.ryusuke@gmail.com
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Cc: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nilfs2/btree.c