Skip to contentSkip to conversation

BTRFS: fixed a coding style issue

PATCH New Aldo Iljazi 1 participant 2 messages Nov 5, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 BTRFS: fixed a coding style issue

Line 31: Removed spaces before the semicolons.

---
 fs/btrfs/print-tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/print-tree.c +1 -1
index 0088bed..19dd143 100644
@@ -28,7 +28,7 @@ static void print_chunk(struct extent_buffer *eb, struct btrfs_chunk *chunk)
 	       "num_stripes %d\n",
 	       btrfs_chunk_length(eb, chunk), btrfs_chunk_owner(eb, chunk),
 	       btrfs_chunk_type(eb, chunk), num_stripes);
-	for (i = 0 ; i < num_stripes ; i++) {
+	for (i = 0; i < num_stripes; i++) {
 		printk(KERN_INFO "\t\t\tstripe %d devid %llu offset %llu\n", i,
 		      btrfs_stripe_devid_nr(eb, chunk, i),
 		      btrfs_stripe_offset_nr(eb, chunk, i));
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 2/2 BTRFS: fixed a coding style issue

Line 265: Inserted a space before the open parenthesis.

---
 fs/btrfs/async-thread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/async-thread.c +1 -1
index 08cc08f..8aec751 100644
@@ -262,7 +262,7 @@ static struct btrfs_work *get_next_work(struct btrfs_worker_thread *worker,
 	struct btrfs_work *work = NULL;
 	struct list_head *cur = NULL;
 
-	if(!list_empty(prio_head))
+	if (!list_empty(prio_head))
 		cur = prio_head->next;
 
 	smp_mb();
Signature · 1 line
1.8.3.2