linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Quigley <tsimonq2@ubuntu.com>
To: clm@fb.com
Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org,
	Simon Quigley <tsimonq2@ubuntu.com>
Subject: [PATCH] btrfs: async-thread: Fixed a brace coding style issue
Date: Sat, 20 Feb 2016 11:34:07 -0600	[thread overview]
Message-ID: <1455989647-7336-1-git-send-email-tsimonq2@ubuntu.com> (raw)

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


             reply	other threads:[~2016-02-20 17:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-20 17:34 Simon Quigley [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-02-20 17:39 [PATCH] btrfs: async-thread: Fixed a brace coding style issue Simon Quigley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1455989647-7336-1-git-send-email-tsimonq2@ubuntu.com \
    --to=tsimonq2@ubuntu.com \
    --cc=clm@fb.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).