Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp412216pxa; Thu, 27 Aug 2020 06:02:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzulMIWxQA+B8g7PyKVHxj/lUCsVaJ8/PNMvaowfd1HZ2wIWAL3TPUO5vcDvQX/Ti84e7zN X-Received: by 2002:a17:906:e28d:: with SMTP id gg13mr15959525ejb.96.1598533343277; Thu, 27 Aug 2020 06:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598533343; cv=none; d=google.com; s=arc-20160816; b=xlWumnfowjZ3kKDz2gBLqAFOXHHS+wsD4z3/dXYMVG5L1b8I7Odii7WgXW3Wdoigc7 PV4cjgtb6iB5qm3G6sUyP890+BwCPjv39GMI0QjGF/rWZscBdIjQO3t/Vdz9jvJb/kwD CT6cor2YQEjZ4Hzu79qbWynZdxrigXtu9Gfn2gt0NwVgM943jLZKGd6ijUxSSqVsO8OG 495P/90hHUvfQUXiDjA8OK9Nx6D1p+01naBjYF8WjzQCu1DvhxhWih/CmUCV4B7N/mSf INd+u5rTqLxwXH0YN99cTzLdP/isgO0IWUo8sQjDKkD/P+hXKHC/CPQgPjJe61w/PY8v Ujig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ahX6q+4elvcYD7eiD4sljxAfVLV9TkKHQw4LQXL+kpU=; b=yhD7wfPZe0C1RKsCjQd7ehAtQci4QMU71Hi732mq1KsOPSCXUuHJCaLrFSfhBcNxJv B+v4QHCp4HFTMbSBQhXL2ptM9zu6ni1g2d6YN4m1EhaFaD508Rt+7PRg/t0aRry5zE5H oN0TFPOgozGH3PdGq79uveXj8EyVclUYv5Vzj+5fcV9642qhLXu9udU28okOiBjSyI/A yPIZ6ZmxTKuf/mfiOpJJw7IbomlAKmHfGTPT3njBzGhrUsJdTVuIYb7nRw6zhp+BxWoR rW3YReixKR1uHVKyxh8tUvU8CyZ16NWqv8Et6otwnjW/REs/1j7DEpY6/nKxdDNPeliI QkvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si1670774edi.318.2020.08.27.06.01.58; Thu, 27 Aug 2020 06:02:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727024AbgH0NA2 (ORCPT + 99 others); Thu, 27 Aug 2020 09:00:28 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:10333 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728981AbgH0M7X (ORCPT ); Thu, 27 Aug 2020 08:59:23 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id F307EFE4E176E3835862; Thu, 27 Aug 2020 20:59:17 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Thu, 27 Aug 2020 20:59:11 +0800 From: Jason Yan To: , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] scsi: isci: remove set but not used 'index' Date: Thu, 27 Aug 2020 20:58:51 +0800 Message-ID: <20200827125851.428071-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This addresses the following gcc warning with "make W=1": drivers/scsi/isci/host.c: In function ‘sci_controller_complete_io’: drivers/scsi/isci/host.c:2674:6: warning: variable ‘index’ set but not used [-Wunused-but-set-variable] 2674 | u16 index; | ^~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/scsi/isci/host.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/isci/host.c b/drivers/scsi/isci/host.c index 7b5deae68d33..7ebfa3c8cdc7 100644 --- a/drivers/scsi/isci/host.c +++ b/drivers/scsi/isci/host.c @@ -2671,7 +2671,6 @@ enum sci_status sci_controller_complete_io(struct isci_host *ihost, struct isci_request *ireq) { enum sci_status status; - u16 index; switch (ihost->sm.current_state_id) { case SCIC_STOPPING: @@ -2682,7 +2681,6 @@ enum sci_status sci_controller_complete_io(struct isci_host *ihost, if (status != SCI_SUCCESS) return status; - index = ISCI_TAG_TCI(ireq->io_tag); clear_bit(IREQ_ACTIVE, &ireq->flags); return SCI_SUCCESS; default: -- 2.25.4