From patchwork Fri Apr 26 09:36:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shivasharan Srikanteshwara X-Patchwork-Id: 10918927 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 F3E1D1575 for ; Fri, 26 Apr 2019 09:38:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3FF728D55 for ; Fri, 26 Apr 2019 09:38:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D819028D69; Fri, 26 Apr 2019 09:38:13 +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 8853228D55 for ; Fri, 26 Apr 2019 09:38:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726193AbfDZJiN (ORCPT ); Fri, 26 Apr 2019 05:38:13 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:38279 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725877AbfDZJiN (ORCPT ); Fri, 26 Apr 2019 05:38:13 -0400 Received: by mail-pf1-f195.google.com with SMTP id 10so1440320pfo.5 for ; Fri, 26 Apr 2019 02:38:12 -0700 (PDT) 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=1l5cQcHT4dT5TKu+rRmWN9++CuA6N+bsfsSSqBnqWYs=; b=gtotp/Oo1ovBTGe73l8JOKx49X+Oqdr3dSa+q9zjUm4USvzX21gTY0kE3Cv4JAZnye DRLmEK/JRAr1g7Oup1Gw/8sFnte9Gzj/1Igf+bqFkUE9s9tRaWZ1l9Jizw09VhKth8oa A0/0H1FulrUnUzwM92SBFwtHM/EDNReqDz/eg= 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=1l5cQcHT4dT5TKu+rRmWN9++CuA6N+bsfsSSqBnqWYs=; b=Lh8HsxLcfmnZh5NOdQBOcH8d9UjjLWqkTOTCEGRSrbpXyCPletTuf38qHFrBEKm37v jR7wuz6mkkIKA/Z9fpqhEOBwqT4QKNuCddBIw1DadYa/hBf2+EwGBlPj5P8QSMuICRxC x+ccdWoonJpeYR9utc5lkTRTJKw+FbBp2gDu15Qn8WA7cu7RqVO4Z+5nzhjNdxg8ivLj gm5lAvHVBDZkyGxsY5PzsaylQQ0hS3T8PLELq6+t3kxTBt7BaqbjNtP4vJtJw6T4tMkr sFiyHiacUw5JnoXa46VqQcjQSqwIb1BBVB1XzLyRe9d9XX/u0TlSQQPeEpllQ9boLsAq +Zyg== X-Gm-Message-State: APjAAAVT8eZ+k64zU0656CEAgqP4sDXI6i0wGqVoDD0izL8YOeFAKbCb RsrnnoqykccLZYN45i9DKtMKJDCXj6v+cd5z/R/LYB/3DI2BOwfpMXlPS9RdEFZmDxU4ptTuimX LtE/SSDl9zrJpUCcYaw4wengvUVr7vPhp0JRwwaN7OyQ9uW4qO0LqFmRpG81iGIg2gzlAUFv91R z2u/UpBp3gcCZVfCbakzwe X-Google-Smtp-Source: APXvYqy+ximgn/Zz1va8evGJ/L+CCdTvjIA56KB51zjsVdA8yWulVkTJZ94RPEUjSq2JDSYNUT+33Q== X-Received: by 2002:a65:6105:: with SMTP id z5mr42936945pgu.378.1556271491792; Fri, 26 Apr 2019 02:38:11 -0700 (PDT) Received: from dhcp-135-24-192-142.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id r4sm37994649pgl.69.2019.04.26.02.38.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Apr 2019 02:38:11 -0700 (PDT) From: Shivasharan S To: linux-scsi@vger.kernel.org Cc: kashyap.desai@broadcom.com, sumit.saxena@broadcom.com, kiran-kumar.kasturi@broadcom.com, sankar.patra@broadcom.com, sasikumar.pc@broadcom.com, chandrakanth.patil@broadcom.com, Shivasharan S Subject: [PATCH 01/21] megaraid_sas: remove unused variable target_index Date: Fri, 26 Apr 2019 02:36:55 -0700 Message-Id: <1556271435-27252-2-git-send-email-shivasharan.srikanteshwara@broadcom.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1556271435-27252-1-git-send-email-shivasharan.srikanteshwara@broadcom.com> References: <1556271435-27252-1-git-send-email-shivasharan.srikanteshwara@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 No functional change. Remove set but unused variable in megasas_set_static_target_properties. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_base.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index bbe6972f3477..f677a84f6bc8 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c @@ -1931,7 +1931,6 @@ megasas_set_nvme_device_properties(struct scsi_device *sdev, u32 max_io_size) static void megasas_set_static_target_properties(struct scsi_device *sdev, bool is_target_prop) { - u16 target_index = 0; u8 interface_type; u32 device_qd = MEGASAS_DEFAULT_CMD_PER_LUN; u32 max_io_size_kb = MR_DEFAULT_NVME_MDTS_KB; @@ -1948,8 +1947,6 @@ static void megasas_set_static_target_properties(struct scsi_device *sdev, */ blk_queue_rq_timeout(sdev->request_queue, scmd_timeout * HZ); - target_index = (sdev->channel * MEGASAS_MAX_DEV_PER_CHANNEL) + sdev->id; - switch (interface_type) { case SAS_PD: device_qd = MEGASAS_SAS_QD;