Skip to contentSkip to conversation

staging: unisys: remove braces from single statement blocks

PATCH In review Isaac Assegai 2 participants 2 messages May 17, 2015 – May 24, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: unisys: remove braces from single statement blocks

Remove the braces to satisfy this checkpatch warning:
WARNING: braces {} are not necessary for single statement blocks

---
 drivers/staging/unisys/virthba/virthba.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/staging/unisys/virthba/virthba.c +2 -4
index d9001cc..9892c63 100644
@@ -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);
-				}
 			}
 		}
 	}
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 7 lines · Isaac Assegai

Remove the braces to satisfy this checkpatch warning:
WARNING: braces {} are not necessary for single statement blocks

---
 drivers/staging/unisys/virthba/virthba.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Doesn't apply to my tree :(