From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750983AbbEQWsM (ORCPT ); Sun, 17 May 2015 18:48:12 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34456 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750759AbbEQWsD (ORCPT ); Sun, 17 May 2015 18:48:03 -0400 From: Isaac Assegai To: gregkh@linuxfoundation.org Cc: sparmaintainer@unisys.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Isaac Assegai Subject: [PATCH] staging: unisys: remove braces from single statement blocks Date: Sun, 17 May 2015 15:46:36 -0700 Message-Id: <1431902796-7207-1-git-send-email-isaac.a.travers@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the braces to satisfy this checkpatch warning: WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Isaac Assegai --- 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