]> 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)
commit77603130a198178ee9561264ef039ac9d85e0776
tree2002f72f5c12d51ed9c13a1cdf2cb626adf5ac40
parentfe330305043f0b89132237fc0bbef66a040ebe90
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