From patchwork Tue Jul 21 16:41:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 246901 Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp2711208ecp; Tue, 21 Jul 2020 09:42:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQdal/3Rlq8sD0wQXidDY/VhWr9D9qgM6SaDcYJvt/4mjtgcD6D9W+kWIUhyh+66M+VSPv X-Received: by 2002:aa7:d58c:: with SMTP id r12mr27878817edq.160.1595349739021; Tue, 21 Jul 2020 09:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595349739; cv=none; d=google.com; s=arc-20160816; b=TnZ3gY0+5/B915OP8+tKbRwgUi4Fe8TPxTo8OR3OIEB5515EwyqhAZO4Grd5GDdtDt i29NslXiSxX1BZSHOX+ZX8PvNhdOOY78bCVJY3zhf+t9PLWj0m0lKDN2KJKViUG9SKv6 tXbAEeHDVvzD91dUNFtYsri6+afOE9JakTt1GzcDkdEebEqwFOLEI0evQ85Fnx2KGSWt PpGgJlA6GN1s4QrT1OL3SAIbzB/6yipZVhQn4CDnC6RP1J5axs3lcDZO2+4w6YLg9Uqg zzfGTZZTwBlKFhohUyiq1bv5NPVcPKDFU3YY50nYi3hxndpS6aCUOdYOMkWxXoCvJw9q 6GYQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Tk/9PpJj3IjnUUvno6UFEVw3K4ZZzww2rfSi8MPmyJM=; b=OCRbOGIV0FCg5qcfRd2Xfq6pMGN66ICtOfHbusxfm9G6zZ9sSdFem9VnhS7lX61e2e lWk7LEjNNqAUpPJu/cuYhNaxIHRcQDGL2eDAl075ped051cTG0J6favsenFZ9gjSPaXH 5vWoZ2R8dw4qtpP2IA2p2LdYJ+DyBWsOImmsXbu+IpXmB0xeJw1QXjcq0udF7rktPgTi Pr36xMl//8gPfi36A03/Eo7MSSGXTfSboPCTzdhfYhc+8a7UdDJN/PM6JQC4xDrVf/TA j1KzadDRbAdcdTDVbv9PtKyDMEw4cXj9xOZsshAYmQYF/Sli57QCMdFf+pAFe/EWJSph DBbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lMb4wjDU; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x15si13006696ejc.115.2020.07.21.09.42.18 for ; Tue, 21 Jul 2020 09:42:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lMb4wjDU; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730583AbgGUQmS (ORCPT ); Tue, 21 Jul 2020 12:42:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730540AbgGUQmR (ORCPT ); Tue, 21 Jul 2020 12:42:17 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 121DCC0619DA for ; Tue, 21 Jul 2020 09:42:17 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id a14so7002976wra.5 for ; Tue, 21 Jul 2020 09:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Tk/9PpJj3IjnUUvno6UFEVw3K4ZZzww2rfSi8MPmyJM=; b=lMb4wjDU3b7k+Ix4Tajy3V/XNCIzn9AeMx+Gy2I3LOimG2LvLXLlHQoxoiiOPhtNyS TOHmywAu/W6iADoMfAn8br/lyzSviID8feUGnhY4XFALqSDOhtHtB8YFjPT4G8c1Ku3n PHBy5Q29nVUWwedHJ6MiLvYQLdg7X9wJb88aDcK+nmUFG24pCuwyn4NVv7RWmjyyw6N+ oN29a0dIqRoHa4/5Z4c4z0YBxcrBnZ7BzQJ09Go/gLCH0ZOHjR6Ei59p3ni/bKufLLQD UukQHHpBBmFwNSiOsJvBHtF8P1gy2znSVAmnxROqxE9RhWFJ7KujQHv1Gu4jmQlzwgoU LpmQ== 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:mime-version:content-transfer-encoding; bh=Tk/9PpJj3IjnUUvno6UFEVw3K4ZZzww2rfSi8MPmyJM=; b=SAY4eEXEi7wiEKn6gLnKImAvvg7iBN9Kze7kWwTsSfqogFE3jNuafrWFpZ2+t4vJH2 2kjUTYDmJzk7oABhOOLTnyokaGutAVPyf9Ro23NR/XjkeOkxw9tSE0GNV6TXtG1patps 4gX1vV2D5sowTNJAXkjZJqlJsXuEeTCcWqYlVXll94mjT9Sv4LvCtA5w+4KuuTdLfzE2 TbtTNqSFAMgfriY2f4qUtjvx0fN0x1qwU4do9badcS3MX5Par2Ltcb/dic443RL3PadK Oxt25mGfKO2DJQDaKb+0ToH5Ml05WCprcG2ayTT0B9UMpQspZ+lU3fOR3+KlKWeJgm9r XtEw== X-Gm-Message-State: AOAM530RwcfO7Gm8+3qHPIxl1owLQXyfmiIHM57oiu4zxV8n9FmNwWy/ t7WSsiTPeDnKeZabe6lUm45M3g== X-Received: by 2002:adf:97c1:: with SMTP id t1mr1258158wrb.294.1595349735760; Tue, 21 Jul 2020 09:42:15 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.94]) by smtp.gmail.com with ESMTPSA id m4sm3933524wmi.48.2020.07.21.09.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 09:42:15 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones , QLogic-Storage-Upstream@qlogic.com Subject: [PATCH 12/40] scsi: qla4xxx: ql4_init: Remove set but unused variable 'func_number' Date: Tue, 21 Jul 2020 17:41:20 +0100 Message-Id: <20200721164148.2617584-13-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200721164148.2617584-1-lee.jones@linaro.org> References: <20200721164148.2617584-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/scsi/qla4xxx/ql4_init.c: In function ‘ql4xxx_set_mac_number’: drivers/scsi/qla4xxx/ql4_init.c:17:10: warning: variable ‘func_number’ set but not used [-Wunused-but-set-variable] Cc: QLogic-Storage-Upstream@qlogic.com Signed-off-by: Lee Jones --- drivers/scsi/qla4xxx/ql4_init.c | 2 -- 1 file changed, 2 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/qla4xxx/ql4_init.c b/drivers/scsi/qla4xxx/ql4_init.c index 5963127f7d2ef..82f6e7f3969ec 100644 --- a/drivers/scsi/qla4xxx/ql4_init.c +++ b/drivers/scsi/qla4xxx/ql4_init.c @@ -14,7 +14,6 @@ static void ql4xxx_set_mac_number(struct scsi_qla_host *ha) { uint32_t value; - uint8_t func_number; unsigned long flags; /* Get the function number */ @@ -22,7 +21,6 @@ static void ql4xxx_set_mac_number(struct scsi_qla_host *ha) value = readw(&ha->reg->ctrl_status); spin_unlock_irqrestore(&ha->hardware_lock, flags); - func_number = (uint8_t) ((value >> 4) & 0x30); switch (value & ISP_CONTROL_FN_MASK) { case ISP_CONTROL_FN0_SCSI: ha->mac_index = 1;