Skip to contentSkip to conversation

Btrfs: trivial cleanup: setup ret with 0 directly in btrfs_wait_for_commit

PATCH In review Wang Sheng-Hui 1 participant 1 message Sep 24, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 Btrfs: trivial cleanup: setup ret with 0 directly in btrfs_wait_for_commit

trivial code cleanup.

---
 fs/btrfs/transaction.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
fs/btrfs/transaction.c +1 -2
index 8fcc501..469a8b6 100644
@@ -420,9 +420,8 @@ static noinline void wait_for_commit(struct btrfs_root *root,
 int btrfs_wait_for_commit(struct btrfs_root *root, u64 transid)
 {
 	struct btrfs_transaction *cur_trans = NULL, *t;
-	int ret;
+	int ret = 0;
 
-	ret = 0;
 	if (transid) {
 		if (transid <= root->fs_info->last_trans_committed)
 			goto out;
Signature · 1 line
1.7.1