mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mariusz Masztalerczuk <mmasztalerczuk@gmail.com>
To: benjamin.romer@unisys.com
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
	Mariusz Masztalerczuk <mmasztalerczuk@gmail.com>
Subject: [PATCH] Staging: unisys: virthba: fixed a brace coding style issue
Date: Fri,  5 Jun 2015 13:17:32 +0200	[thread overview]
Message-ID: <1433503052-8414-1-git-send-email-mmasztalerczuk@gmail.com> (raw)

Fixed a coding style issue.

Signed-off-by: Mariusz Masztalerczuk <mmasztalerczuk@gmail.com>
---
 drivers/staging/unisys/virthba/virthba.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/unisys/virthba/virthba.c b/drivers/staging/unisys/virthba/virthba.c
index d9001cc..9892c63 100644
--- a/drivers/staging/unisys/virthba/virthba.c
+++ b/drivers/staging/unisys/virthba/virthba.c
@@ -868,9 +868,8 @@ virthba_queue_command_lck(struct scsi_cmnd *scsicmd,
 	/* The following code does NOT make that assumption. */
 	/* convert buffer to phys information */
 	if (scsi_sg_count(scsicmd) == 0) {
-		if (scsi_bufflen(scsicmd) > 0) {
+		if (scsi_bufflen(scsicmd) > 0)
 			BUG_ON(scsi_sg_count(scsicmd) == 0);
-		}
 	} else {
 		/* buffer is scatterlist - copy it out */
 		sgl = scsi_sglist(scsicmd);
@@ -1068,9 +1067,8 @@ do_scsi_nolinuxstat(struct uiscmdrsp *cmdrsp, struct scsi_cmnd *scsicmd)
 
 			if (atomic_read(&vdisk->ios_threshold) > 0) {
 				atomic_dec(&vdisk->ios_threshold);
-				if (atomic_read(&vdisk->ios_threshold) == 0) {
+				if (atomic_read(&vdisk->ios_threshold) == 0)
 					atomic_set(&vdisk->error_count, 0);
-				}
 			}
 		}
 	}
-- 
1.9.1


             reply	other threads:[~2015-06-05 11:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-05 11:17 Mariusz Masztalerczuk [this message]
2015-06-05 11:35 ` Sudip Mukherjee

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=1433503052-8414-1-git-send-email-mmasztalerczuk@gmail.com \
    --to=mmasztalerczuk@gmail.com \
    --cc=benjamin.romer@unisys.com \
    --cc=devel@driverdev.osuosl.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

all inboxes | Powered by JetHome®