Skip to contentSkip to conversation

btrfs: Fixed a brace coding style issue

PATCH In review Maheep Kumar Kathuria 2 participants 2 messages Feb 15, 2021 – Feb 24, 2021 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: Fixed a brace coding style issue

Fixed a coding style issue in thresh_exec_hook()

---
 fs/btrfs/async-thread.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/btrfs/async-thread.c +1 -2
index 309516e6a968..38abeff7af69 100644
@@ -212,9 +212,8 @@ static inline void thresh_exec_hook(struct __btrfs_workqueue *wq)
 out:
 	spin_unlock(&wq->thres_lock);
 
-	if (need_change) {
+	if (need_change)
 		workqueue_set_max_active(wq->normal_wq, wq->current_active);
-	}
 }
 
 static void run_ordered_work(struct __btrfs_workqueue *wq,
Signature · 1 line
2.29.2
#1 lore raw
Quoted 12 lines · Maheep Kumar Kathuria

Fixed a coding style issue in thresh_exec_hook()

---
 fs/btrfs/async-thread.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/btrfs/async-thread.c +0 -0
index 309516e6a968..38abeff7af69 100644

fs/btrfs/async-thread.c static inline void thresh_exec_hook(struct __btrfs_workqueue *wq) · line 217

Quoted 7 lines
fs/btrfs/async-thread.c +1 -2
@@ -212,9 +212,8 @@ static inline void thresh_exec_hook(struct __btrfs_workqueue *wq)
 out:
 	spin_unlock(&wq->thres_lock);
 
-	if (need_change) {
+	if (need_change)
 		workqueue_set_max_active(wq->normal_wq, wq->current_active);
-	}

This is really a trivial change, have you checked if there are more? Fixing them in a larger batch would be better than one by one.