]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: remove unnecessary conditionals
authorLv Ruyi <lv.ruyi@zte.com.cn>
Mon, 11 Apr 2022 03:23:37 +0000 (03:23 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 13 May 2022 20:27:24 +0000 (16:27 -0400)
commit35f6e6e8f75e63aadd79e52e2c82554514e815c5
tree08d4a3e48f2eb2bc7130b18c3f76ccdb5b926c2e
parent3e7cec0bc55f92a93783c87de3e1ee556b658425
ext4: remove unnecessary conditionals

iput() has already handled null and non-null parameter, so it is no
need to use if().

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Link: https://lore.kernel.org/r/20220411032337.2517465-1-lv.ruyi@zte.com.cn
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/fast_commit.c
fs/ext4/namei.c