Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3842745pxv; Mon, 26 Jul 2021 13:42:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuUSByl/kFHwqLftIrP+8mrI1tQk0WfRxRvAnnwekOHdT+M4MR3k320JbBcwGygKiSs+76 X-Received: by 2002:a02:c496:: with SMTP id t22mr18558717jam.80.1627332132044; Mon, 26 Jul 2021 13:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627332132; cv=none; d=google.com; s=arc-20160816; b=cx1glZvkucEzu0y1FSyxyWjfRbSK4pI2SWDgoEQuhWjv0wE//5ua/nQVPNVexramYJ unoTrTnyrGlegL2xFeE6UhVG0FgC55FegNBzQ7uj+oYFBpwIfHp0JhL0Wavgxxw1CW/j bHoW259YV/yJjb5rXN6rgnJnWovzImHBuXK9Epjkj1clDQHqLUm3T7KG0SNWRopzhwJM v68AvULETjoX7yYnGUM1O8QrTT4n1TbSVb2o1PeVZc9Mwp3H2R9E32e+TDNk3eJ11gPl +C/H3wKGtN+gWN5b9yYu97inVy9MGelpfy3XhdNNXdfGBmjbUI/xDHx5EqmQbnmFfWkV jT6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=1vbultDQ1FTvHkyxClQkgWX8beQ5VOznd//hQSisNQY=; b=p9jZEeUtgi7s9Iu/XTPzosIc/1GSXYKVzxpuVSJn+u/rJQ0417CVoCgOacTHRu7p+s 570Jdvnxqpjp7s/TUM0mVKvp075R4EcVFWn97RujAVyQPI7TctoO26WDjPuSARmVx486 0UXjg+WcJy/Sklrb2N76eBfkuaQ9dj/REtf3gHr/nCcGgyscbt7OCDVEDjEJhk+tqlFJ 685EQ7JfuyJpm08A5vL0qczcepvBuyw4es2DVu3T4Z1CffjSxYpE4bKooeiUWYbkgAte u0GMn+rGewNbpQ7GJ3SUf9PB3ONhP8E+spbmeiEri8ZXHgw54mOBvJiVjx7evPm0S+Ja czog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AfCMCftx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si939989ile.21.2021.07.26.13.41.59; Mon, 26 Jul 2021 13:42:12 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AfCMCftx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232597AbhGZT7o (ORCPT + 99 others); Mon, 26 Jul 2021 15:59:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:56226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231946AbhGZT7n (ORCPT ); Mon, 26 Jul 2021 15:59:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0D20160F93; Mon, 26 Jul 2021 20:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627332011; bh=jQKf1yPaVAGcaRW3GfVqbr6BTwPqbM/91QWOZPscGD8=; h=Subject:To:References:From:Date:In-Reply-To:From; b=AfCMCftxc1MD7k8kYQ5CgRhRTSD9DSJrDjRYeYetfbUKr+XCaRpGGA3S47ipia5Mq XIZFsp+lbykeBVzbKpIKdBnqmmo7Q/iaMN2tjH59qEKV5c7SA/KppcPqDO4o1quh01 qGrs20jvwnWtLdLJ6ymF71gfFE804CmBLzzMtWWZD3oYSWKHaDZkPAk8LvsbgOWC1A T0SfG9db7SJHBW3Vd24GC1ObcGiakufeULKX3a1KUhPtqlrDM8F6Sv25NcTDqD8Hwg bcho4bZyWKQmJeR8sGSlZId7hZNlFHB3n+nTqBuI9miNL+rL5gSO28Nbe5P+pHzHcv 6gMktnn0+TPKw== Subject: Re: [PATCH v2 3/3] scsi: qla2xxx: remove unused variable 'status' To: Bill Wendling , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, clang-built-linux@googlegroups.com, Nick Desaulniers , Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, "James E . J . Bottomley" , "Martin K . Petersen" References: <20210714091747.2814370-1-morbo@google.com> <20210726201924.3202278-1-morbo@google.com> <20210726201924.3202278-4-morbo@google.com> From: Nathan Chancellor Message-ID: <52726cd7-48d0-4600-aac1-bc39fc60bf66@kernel.org> Date: Mon, 26 Jul 2021 13:40:10 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210726201924.3202278-4-morbo@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/26/2021 1:19 PM, 'Bill Wendling' via Clang Built Linux wrote: > Fix the clang build warning: > > drivers/scsi/qla2xxx/qla_nx.c:2209:6: error: variable 'status' set but not used [-Werror,-Wunused-but-set-variable] > int status = 0; > > Signed-off-by: Bill Wendling It has been unused since the function's introduction in commit a9083016a531 ("[SCSI] qla2xxx: Add ISP82XX support."). Reviewed-by: Nathan Chancellor > --- > drivers/scsi/qla2xxx/qla_nx.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c > index 615e44af1ca6..11aad97dfca8 100644 > --- a/drivers/scsi/qla2xxx/qla_nx.c > +++ b/drivers/scsi/qla2xxx/qla_nx.c > @@ -2166,7 +2166,6 @@ qla82xx_poll(int irq, void *dev_id) > struct qla_hw_data *ha; > struct rsp_que *rsp; > struct device_reg_82xx __iomem *reg; > - int status = 0; > uint32_t stat; > uint32_t host_int = 0; > uint16_t mb[8]; > @@ -2195,7 +2194,6 @@ qla82xx_poll(int irq, void *dev_id) > case 0x10: > case 0x11: > qla82xx_mbx_completion(vha, MSW(stat)); > - status |= MBX_INTERRUPT; > break; > case 0x12: > mb[0] = MSW(stat); >