* [PATCH] btrfs: async-thread: Fixed a brace coding style issue
@ 2016-02-20 17:34 Simon Quigley
0 siblings, 0 replies; 2+ messages in thread
From: Simon Quigley @ 2016-02-20 17:34 UTC (permalink / raw)
To: clm; +Cc: linux-btrfs, linux-kernel, Simon Quigley
Braces aren't needed if it's only a single-line statement.
checkpatch.pl confirmed this.
This is now fixed.
Signed-off-by: Simon Quigley <tsimonq2@ubuntu.com>
---
fs/btrfs/async-thread.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c
index 5fb60ea..7914dd2 100644
--- a/fs/btrfs/async-thread.c
+++ b/fs/btrfs/async-thread.c
@@ -227,9 +227,9 @@ 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)
--
2.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] btrfs: async-thread: Fixed a brace coding style issue
@ 2016-02-20 17:39 Simon Quigley
0 siblings, 0 replies; 2+ messages in thread
From: Simon Quigley @ 2016-02-20 17:39 UTC (permalink / raw)
To: clm; +Cc: linux-btrfs, linux-kernel, Simon Quigley
Braces aren't needed if it's only a single-line statement.
checkpatch.pl confirmed this.
This is now fixed.
Signed-off-by: Simon Quigley <tsimonq2@ubuntu.com>
---
fs/btrfs/async-thread.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c
index 5fb60ea..7914dd2 100644
--- a/fs/btrfs/async-thread.c
+++ b/fs/btrfs/async-thread.c
@@ -227,9 +227,9 @@ 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)
--
2.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-20 17:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-20 17:34 [PATCH] btrfs: async-thread: Fixed a brace coding style issue Simon Quigley
-- strict thread matches above, loose matches on Subject: below --
2016-02-20 17:39 Simon Quigley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).