From patchwork Fri Feb 15 07:40:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suganath Prabu S X-Patchwork-Id: 10814267 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1855B139A for ; Fri, 15 Feb 2019 07:40:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E39302EB69 for ; Fri, 15 Feb 2019 07:40:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E1FEA2EB7B; Fri, 15 Feb 2019 07:40:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 789EF2EB75 for ; Fri, 15 Feb 2019 07:40:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390208AbfBOHky (ORCPT ); Fri, 15 Feb 2019 02:40:54 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:36843 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728823AbfBOHky (ORCPT ); Fri, 15 Feb 2019 02:40:54 -0500 Received: by mail-yw1-f65.google.com with SMTP id 189so3377950ywi.3 for ; Thu, 14 Feb 2019 23:40:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=H/l1PG98U0MbiOKPtTCGueW/3XAsuGEJqyt11DU17L8=; b=HdrEAFDHf1yGEuCUY0XyWNEVEjFRVAcem2Y/+6UfFqo6AFvZ57fBR9YDt933GNW+Ma YQS1N5/4sTm2aIakUfxqCGZKOzh235vdk1t6rYzE0Oz96NXJsTqFjmUlqtT4nZbeA8Ui E+hl0Wf5v1IRp67mtPTandyjcp4tEKvchQvzg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=H/l1PG98U0MbiOKPtTCGueW/3XAsuGEJqyt11DU17L8=; b=l3xNHUzhYuF9BS8iaT2KzgKutns8MZ7rhoJ6vHpuQFMr/YotZ4Dp2PCyHF14jAYnzP FiKgWVo90zsFxuLFc9doAZsoAorhvs901IQkfZCotEqFzPqwM2nIDPm2ZxKDqDbz19Cz Mf4p7ISMxbvDhAeNsvLg6ekuE3ZqKSE03lxE6HfK1ecEO3HjNFEOxOgsdu2LWtBTjS3b SENQ2eq6LKjRqhEAoUz0CYSjRlBJY8hq2CBJ470+0yZ5Q6nihB15nGonG6aNfImFeD6f XkxI6o4swrmSwlSKSq7bvhgaeAUJd8i2UYKVoJnnGd4fZOq/mw1JEHUf9kIuPgLoj6eA UpXg== X-Gm-Message-State: AHQUAuZvy5HUvU2FMYh+xdEOq26glHiAuuUdi2irQ1DpBFRuPzeZOC1O 0KWIKkVL1H6wTMnYl4gR7RtQRj9oa65qSbLOtmOJ8dKop/4/B7CrxcgT1lG9ZdBvZrRgIVQe9d8 KvVJrKCoQqrkrQmPzsRiFUPxy9dI2vLhePeMBVn7I2L7EgvahUETLmBTCPUjNaQVwSQ+VmdsJkM QJztbvBzouNtTN+mXPfXOE X-Google-Smtp-Source: AHgI3Ib+UC0JDtym+hDegLwqwTgj2hYkwTedjeAxycaxwaxb8fthh/sOZNmYqzh+u9Be/UExra+YKw== X-Received: by 2002:a0d:e045:: with SMTP id j66mr6724306ywe.33.1550216453048; Thu, 14 Feb 2019 23:40:53 -0800 (PST) Received: from dhcp-10-123-20-72.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id c124sm1696388ywe.12.2019.02.14.23.40.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 23:40:52 -0800 (PST) From: Suganath Prabu To: linux-scsi@vger.kernel.org Cc: Sathya.Prakash@broadcom.com, sreekanth.reddy@broadcom.com, Suganath Prabu Subject: [v1 1/7] mpt3sas: Fix typo in request_desript_type. Date: Fri, 15 Feb 2019 02:40:24 -0500 Message-Id: <1550216430-36612-2-git-send-email-suganath-prabu.subramani@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1550216430-36612-1-git-send-email-suganath-prabu.subramani@broadcom.com> References: <1550216430-36612-1-git-send-email-suganath-prabu.subramani@broadcom.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixed typo in request_desript_type. request_desript_type --> request_descript_type. Signed-off-by: Suganath Prabu --- drivers/scsi/mpt3sas/mpt3sas_base.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c index 0a6cb8f..4184d96 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.c +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c @@ -1395,7 +1395,7 @@ _base_interrupt(int irq, void *bus_id) struct adapter_reply_queue *reply_q = bus_id; union reply_descriptor rd; u32 completed_cmds; - u8 request_desript_type; + u8 request_descript_type; u16 smid; u8 cb_idx; u32 reply; @@ -1411,9 +1411,9 @@ _base_interrupt(int irq, void *bus_id) return IRQ_NONE; rpf = &reply_q->reply_post_free[reply_q->reply_post_host_index]; - request_desript_type = rpf->Default.ReplyFlags + request_descript_type = rpf->Default.ReplyFlags & MPI2_RPY_DESCRIPT_FLAGS_TYPE_MASK; - if (request_desript_type == MPI2_RPY_DESCRIPT_FLAGS_UNUSED) { + if (request_descript_type == MPI2_RPY_DESCRIPT_FLAGS_UNUSED) { atomic_dec(&reply_q->busy); return IRQ_NONE; } @@ -1426,11 +1426,11 @@ _base_interrupt(int irq, void *bus_id) goto out; reply = 0; smid = le16_to_cpu(rpf->Default.DescriptorTypeDependent1); - if (request_desript_type == + if (request_descript_type == MPI25_RPY_DESCRIPT_FLAGS_FAST_PATH_SCSI_IO_SUCCESS || - request_desript_type == + request_descript_type == MPI2_RPY_DESCRIPT_FLAGS_SCSI_IO_SUCCESS || - request_desript_type == + request_descript_type == MPI26_RPY_DESCRIPT_FLAGS_PCIE_ENCAPSULATED_SUCCESS) { cb_idx = _base_get_cb_idx(ioc, smid); if ((likely(cb_idx < MPT_MAX_CALLBACKS)) && @@ -1440,7 +1440,7 @@ _base_interrupt(int irq, void *bus_id) if (rc) mpt3sas_base_free_smid(ioc, smid); } - } else if (request_desript_type == + } else if (request_descript_type == MPI2_RPY_DESCRIPT_FLAGS_ADDRESS_REPLY) { reply = le32_to_cpu( rpf->AddressReply.ReplyFrameAddress); @@ -1486,7 +1486,7 @@ _base_interrupt(int irq, void *bus_id) (reply_q->reply_post_host_index == (ioc->reply_post_queue_depth - 1)) ? 0 : reply_q->reply_post_host_index + 1; - request_desript_type = + request_descript_type = reply_q->reply_post_free[reply_q->reply_post_host_index]. Default.ReplyFlags & MPI2_RPY_DESCRIPT_FLAGS_TYPE_MASK; completed_cmds++; @@ -1509,7 +1509,7 @@ _base_interrupt(int irq, void *bus_id) } completed_cmds = 1; } - if (request_desript_type == MPI2_RPY_DESCRIPT_FLAGS_UNUSED) + if (request_descript_type == MPI2_RPY_DESCRIPT_FLAGS_UNUSED) goto out; if (!reply_q->reply_post_host_index) rpf = reply_q->reply_post_free;