From: Lu Fengqi Date: Wed, 28 Nov 2018 03:22:54 +0000 (+0800) Subject: btrfs: cleanup the useless DEFINE_WAIT in cleanup_transaction X-Git-Tag: v5.0-rc1~126^2~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ab4fd3135ee21514a50c4f139c4f80c0b43a8ec;p=thirdparty%2Flinux.git btrfs: cleanup the useless DEFINE_WAIT in cleanup_transaction When it was introduced in commit f094ac32aba3 ("Btrfs: fix NULL pointer after aborting a transaction"), it was not used. Signed-off-by: Lu Fengqi Reviewed-by: Nikolay Borisov Reviewed-by: Johannes Thumshirn Signed-off-by: David Sterba --- diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index f92c0a88c4adc..67e84939b758e 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -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);