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)
commit784a09951c1d8383498c0df091a37db612bebfc7
tree08d4a3e48f2eb2bc7130b18c3f76ccdb5b926c2e
parentaf2b327581582a959f1923eca9cafee5b29a7399
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