btrfs: cleanup the useless DEFINE_WAIT in cleanup_transaction
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>
Wed, 28 Nov 2018 03:22:54 +0000 (11:22 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:42 +0000 (14:51 +0100)
When it was introduced in commit f094ac32aba3 ("Btrfs: fix NULL pointer
after aborting a transaction"), it was not used.

Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/transaction.c

index f92c0a88c4adcec6ef783c106bd18ea78dc5bd52..67e84939b758e5095c4e140104c98d5e7304e91c 100644 (file)
@@ -1840,7 +1840,6 @@ static void cleanup_transaction(struct btrfs_trans_handle *trans, int err)
 {
        struct btrfs_fs_info *fs_info = trans->fs_info;
        struct btrfs_transaction *cur_trans = trans->transaction;
-       DEFINE_WAIT(wait);
 
        WARN_ON(refcount_read(&trans->use_count) > 1);