From patchwork Mon Jun 1 15:40:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 6523541 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ABC7CC0020 for ; Mon, 1 Jun 2015 15:40:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B4E3E204A7 for ; Mon, 1 Jun 2015 15:40:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C4851204A9 for ; Mon, 1 Jun 2015 15:40:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753463AbbFAPk0 (ORCPT ); Mon, 1 Jun 2015 11:40:26 -0400 Received: from mail-ie0-f180.google.com ([209.85.223.180]:33034 "EHLO mail-ie0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752860AbbFAPkU (ORCPT ); Mon, 1 Jun 2015 11:40:20 -0400 Received: by iebgx4 with SMTP id gx4so111763953ieb.0 for ; Mon, 01 Jun 2015 08:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=v2Kua2fcD0fAzJjhS3d7Xcjd6ndl72i0EW06zu3Z6qM=; b=Sgc82iVy2RsXuHff/CXzLlg0SZ5Gux9+h5+E+vGOOZirrU/B8qADtpbI7p8ZwUs0LT gcOx/v+l4TVBPbA8uCFCVq8dtsJ/vcI6bkbfeFyRereBSE/FnS0qe3sWQPTjJ4zjvw3M OsdPZ6VhYiB8iMjcw1jeXTw4WOYAzK5Q2IU8pqIaP30x4Ppi0J64uWVOxju1JLu9FOD/ e0XKD6XBxUDdmlwT+BZIiKBO+y2XINxO+Y5yI1DWIKKbJrCT4F6oH47dpMgrwr13ywZv 1FrG4JakDPWm3PD9+GM2YyWTOcSPu7UpaJMvNT4Wzmnqw5nEpw15cdz/qJK5+xEZxweq rhYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=v2Kua2fcD0fAzJjhS3d7Xcjd6ndl72i0EW06zu3Z6qM=; b=J2jlFr9U07sYQFREXVJ9d7TJLpeu+G2vV3Z3xgZNR5ni5uCtRFICj0K+gYTVy3Z77X 1FgBSRk98spqdEOIKRr1n3ubyuMI9KWtXT9Z0S/uFLvQPNRaP1VPUIaKPiLFwNZSHl5O HrV7+S6uP92nRVWo5VvlPwfI6aQOUghwLTjaGLyFf0FUjaLLqJNy+i+nLQC5hqSw2fgA CTCY6UoUTZHEjzryg5cE4O5sTzjosRjyRASGG7/UJmp1je/jFYK6i6jnrHIbXsoA9XNu FdWm1qdyMcuA7OGPW1kJmxXWzCd/rbPu7HWf3sSEz7lX5XOfs1StcgTCE5P08mksVZxL 9wkw== X-Gm-Message-State: ALoCoQn3d/7JnKGV/GmPiDQexGknquKZ6X9MSwJPd+79FOuDTX7i1HIbJwhhAsZgmchoYRR+COY8 X-Received: by 10.42.43.199 with SMTP id y7mr29562625ice.12.1433173219465; Mon, 01 Jun 2015 08:40:19 -0700 (PDT) Received: from localhost ([69.71.1.1]) by mx.google.com with ESMTPSA id d4sm8055211igl.1.2015.06.01.08.40.18 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 01 Jun 2015 08:40:18 -0700 (PDT) Subject: [PATCH v2 3/3] megaraid_sas : fix whitespace errors To: Kashyap Desai , Uday Lingala , Sumit Saxena From: Bjorn Helgaas Cc: megaraidlinux.pdl@avagotech.com, "James E.J. Bottomley" , Christoph Hellwig , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 01 Jun 2015 10:40:17 -0500 Message-ID: <20150601154017.23309.87065.stgit@bhelgaas-glaptop2.roam.corp.google.com> In-Reply-To: <20150601153240.23309.73917.stgit@bhelgaas-glaptop2.roam.corp.google.com> References: <20150601153240.23309.73917.stgit@bhelgaas-glaptop2.roam.corp.google.com> User-Agent: StGit/0.16 MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix whitespace and indentation errors. No code change. Signed-off-by: Bjorn Helgaas --- drivers/scsi/megaraid/megaraid_sas_base.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index a8c512f..e002efd 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c @@ -1458,7 +1458,7 @@ megasas_dump_pending_frames(struct megasas_instance *instance) dev_err(&instance->pdev->dev, "megasas[%d]: Pending OS cmds in FW : \n",instance->host->host_no); for (i = 0; i < max_cmd; i++) { cmd = instance->cmd_list[i]; - if(!cmd->scmd) + if (!cmd->scmd) continue; dev_err(&instance->pdev->dev, "megasas[%d]: Frame addr :0x%08lx : ",instance->host->host_no,(unsigned long)cmd->frame_phys_addr); if (megasas_cmd_type(cmd->scmd) == READ_WRITE_LDIO) { @@ -1470,8 +1470,7 @@ megasas_dump_pending_frames(struct megasas_instance *instance) instance->host->host_no, cmd->frame_count, ldio->cmd, ldio->target_id, le32_to_cpu(ldio->start_lba_lo), le32_to_cpu(ldio->start_lba_hi), le32_to_cpu(ldio->sense_buf_phys_addr_lo), sgcount); - } - else { + } else { pthru = (struct megasas_pthru_frame *) cmd->frame; mfi_sgl = &pthru->sgl; sgcount = pthru->sge_count; @@ -1481,16 +1480,16 @@ megasas_dump_pending_frames(struct megasas_instance *instance) pthru->lun, pthru->cdb_len, le32_to_cpu(pthru->data_xfer_len), le32_to_cpu(pthru->sense_buf_phys_addr_lo), sgcount); } - if(megasas_dbg_lvl & MEGASAS_DBG_LVL){ - for (n = 0; n < sgcount; n++){ - if (IS_DMA64) - dev_err(&instance->pdev->dev, "sgl len : 0x%x, sgl addr : 0x%llx\n", - le32_to_cpu(mfi_sgl->sge64[n].length), - le64_to_cpu(mfi_sgl->sge64[n].phys_addr)); - else - dev_err(&instance->pdev->dev, "sgl len : 0x%x, sgl addr : 0x%x\n", - le32_to_cpu(mfi_sgl->sge32[n].length), - le32_to_cpu(mfi_sgl->sge32[n].phys_addr)); + if (megasas_dbg_lvl & MEGASAS_DBG_LVL) { + for (n = 0; n < sgcount; n++) { + if (IS_DMA64) + dev_err(&instance->pdev->dev, "sgl len : 0x%x, sgl addr : 0x%llx\n", + le32_to_cpu(mfi_sgl->sge64[n].length), + le64_to_cpu(mfi_sgl->sge64[n].phys_addr)); + else + dev_err(&instance->pdev->dev, "sgl len : 0x%x, sgl addr : 0x%x\n", + le32_to_cpu(mfi_sgl->sge32[n].length), + le32_to_cpu(mfi_sgl->sge32[n].phys_addr)); } } } /*for max_cmd*/ @@ -1499,9 +1498,8 @@ megasas_dump_pending_frames(struct megasas_instance *instance) cmd = instance->cmd_list[i]; - if(cmd->sync_cmd == 1){ + if (cmd->sync_cmd == 1) dev_err(&instance->pdev->dev, "0x%08lx : ", (unsigned long)cmd->frame_phys_addr); - } } dev_err(&instance->pdev->dev, "megasas[%d]: Dumping Done.\n\n",instance->host->host_no); }