]> git.baikalelectronics.ru Git - kernel.git/commit
fs/qnx6: delete unnecessary checks before brelse()
authorMinghao Chi <chi.minghao@zte.com.cn>
Fri, 19 Aug 2022 08:18:19 +0000 (08:18 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 04:55:07 +0000 (21:55 -0700)
commit0ba405d10113b628e5b923b1760d9f6b7a7ca901
treef6469b9dca10749aaff28b76b19cef27113167c1
parent5900874260b50bd5a0b468a020fa02c015e0e5a2
fs/qnx6: delete unnecessary checks before brelse()

brelse() 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/20220819081819.96347-1-chi.minghao@zte.com.cn
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Reported-by: Zeal Robot <zealci@zte.com.cn>
Cc: CGEL ZTE <cgel.zte@gmail.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Minghao Chi <chi.minghao@zte.com.cn>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/qnx6/inode.c