]> 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)
commitc517e9a5ba35344641d3ae6e31f4fe0e27c8fa29
tree08d4a3e48f2eb2bc7130b18c3f76ccdb5b926c2e
parent1ab79fe83c58eba4f49256d829a200da1ea4fb1d
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