]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove unnecessary check of iput argument
authorLv Ruyi <lv.ruyi@zte.com.cn>
Mon, 11 Apr 2022 03:22:52 +0000 (03:22 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:12 +0000 (17:03 +0200)
commitd450c4b5848a84f4dd0d7a105816e4873c36955a
tree2002f72f5c12d51ed9c13a1cdf2cb626adf5ac40
parent69dfdaabd1fa588c8fbcbad73010d0f37c4e36e3
btrfs: remove unnecessary check of iput argument

iput() already handles NULL and non-NULL parameter, so it is not needed
to check that. This unifies all iput calls.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c
fs/btrfs/tree-log.c