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)
commit8aa1e49ea1fdcc585be4bcfe8c62684a087cc7c6
tree2002f72f5c12d51ed9c13a1cdf2cb626adf5ac40
parentb027669449390ed549579f0a838c2de6a037dea6
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