Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1339314

[PATCH 1/3] Btrfs: disk-io: fixed a brace coding style issue

From Philippe Loctaux <phil@philippeloctaux.com>
Newsgroups linux.kernel
Subject [PATCH 1/3] Btrfs: disk-io: fixed a brace coding style issue
Date 2016-02-22 11:20 +0100
Message-ID <r4VKV-47A-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Fixed a coding style issue.

Signed-off-by: Philippe Loctaux <phil@philippeloctaux.com>
---
 fs/btrfs/disk-io.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 4545e2e..84cbf16 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -1908,11 +1908,11 @@ static int transaction_kthread(void *arg)
 				cannot_commit = true;
 			goto sleep;
 		}
-		if (transid == trans->transid) {
+		if (transid == trans->transid)
 			btrfs_commit_transaction(trans, root);
-		} else {
+		else
 			btrfs_end_transaction(trans, root);
-		}
+
 sleep:
 		wake_up_process(root->fs_info->cleaner_kthread);
 		mutex_unlock(&root->fs_info->transaction_kthread_mutex);
@@ -1978,11 +1978,11 @@ static void find_oldest_super_backup(struct btrfs_fs_info *info,
 
 	newest_index = find_newest_super_backup(info, newest_gen);
 	/* if there was garbage in there, just move along */
-	if (newest_index == -1) {
+	if (newest_index == -1)
 		info->backup_root_index = 0;
-	} else {
+	else
 		info->backup_root_index = (newest_index + 1) % BTRFS_NUM_BACKUP_ROOTS;
-	}
+
 }
 
 /*
-- 
2.7.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 1/3] Btrfs: disk-io: fixed a brace coding style issue Philippe Loctaux <phil@philippeloctaux.com> - 2016-02-22 11:20 +0100
  [PATCH 2/3] Btrfs: disk-io: fixed an assignment error Philippe Loctaux <phil@philippeloctaux.com> - 2016-02-22 12:00 +0100
  [PATCH 3/3] Btrfs: disk-io: fixed a comment block coding style issue Philippe Loctaux <phil@philippeloctaux.com> - 2016-02-22 12:40 +0100

csiph-web