Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3832212pxv; Mon, 26 Jul 2021 13:23:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFDacnTaF5H27znrieyBY2jgjx94i6llsCTeGyWRC3S1sSpNIaOUFrdpTojXlByNIY8tz0 X-Received: by 2002:aa7:c956:: with SMTP id h22mr23108362edt.378.1627330983042; Mon, 26 Jul 2021 13:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627330983; cv=none; d=google.com; s=arc-20160816; b=nW8/BMjPebrZfQzp4w6w3kMQyVLsNt0GV7M2wtJwAZj8AZ5KdrO+4hoa6okXfIMct6 xzMHaOKKR7E8Q8MPDD1VlrhU4jG8MZRt4HlUkA7np0DzpuP8miKTnfS1bW7HcMYVHphv uuJK6n6bTQoyW288MQYlM9LwCAE7pLIRc6EumJh6u/36ZCYzpiOorwqQ4kmx0Lv1QXx2 6v+hs1Y/TtW/x01qKhzBDbDsmKd4lo9qlXIt/P+ttLAYVkZeXeoMmlUYsZJPCBKc8GfL toQ6eCrIgU8UE07RqiaPDY+cE34xENBXpmIw8WPXCdDBN3O4JB5V6d2XmVVxSBIccusS +Ewg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=YZiRJCULAk0NgZWlw4NhyxwOUxRg8I5AfZi4pSeW7rI=; b=Q+zGzaQ7Ff/5ELA9z8dHTM9edI8drpW784QwpgriYBex7H5YuYhGeK9h6tweMIBXWy ah2z2ajmlVkZ6p13PN3o0OSkPNyd6xA2lh1vGyW6vyG2hWjdFdpnNxMvBTRWvI3GE+Oi R0LTqPkOwekGhQc0LlNCfc9Vrevv8KxAgZpvppA3MjWVWOqNKCNROY/72zpKsSZxBwso cml/UPBXtmTCnCBjP+JfQvCWQ+lo4qpVEs5g0gm5OmM6FHx2bFAKPdEtdCtt5GMHyOTg rNFRQ81uMeQ4Hkr9t/kMUYqtIOzbp1QzFwMdC/CjLvKNUGROCSzOljGmIP5SciXa2Ir1 fM2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=oQk1seDx; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si968721ejz.520.2021.07.26.13.22.39; Mon, 26 Jul 2021 13:23:03 -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=@google.com header.s=20161025 header.b=oQk1seDx; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232649AbhGZTku (ORCPT + 99 others); Mon, 26 Jul 2021 15:40:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232981AbhGZTjH (ORCPT ); Mon, 26 Jul 2021 15:39:07 -0400 Received: from mail-qt1-x84a.google.com (mail-qt1-x84a.google.com [IPv6:2607:f8b0:4864:20::84a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3826DC061764 for ; Mon, 26 Jul 2021 13:19:36 -0700 (PDT) Received: by mail-qt1-x84a.google.com with SMTP id h18-20020ac856920000b029025eb726dd9bso5136016qta.8 for ; Mon, 26 Jul 2021 13:19:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=YZiRJCULAk0NgZWlw4NhyxwOUxRg8I5AfZi4pSeW7rI=; b=oQk1seDxX4hy9rYxFNTS4Ro/4O8OjDW/nJG6LXNJQ4gEQfyB7E2Ki+yYYUKVihluxW mhc4l38AX0jaJzO8qyMuIKSCGO54O2pLS1Nf0LTNJQOZKdhWC6DCxAfYbYTgGLyS84n1 fi8eBKB3R5lruvnoxW4nlI2YsNcVmcJsc1sn8RCxtMWbQ6kx3FotZF7Vu5DjrXyghHP0 bIHkLLUA+e4f5g5wqnjpLXfmnhNEpchc2rrGsHnBlshsQt8PWdpmPs/I6UkTQbBOELIS Vh0UCpQNPD0OdL1XtUn4tS9qZBQb6yBwgiFyFx1Uqhgf5l1iDqaTr4xSIBGvtWcJCRQu Npcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=YZiRJCULAk0NgZWlw4NhyxwOUxRg8I5AfZi4pSeW7rI=; b=ZvGsKdLx3257oRKQfAsKshueTKHEDCusCAZZwCz7nAke5n3XzjEyRvwV3gE/alBtWX 6ESIIiHyciXJrh5KZohTyIgnON6MK7jMgFSXzko2aPR1xrEzB7DdzGnaDDxpfUxl/lt0 qTy5MXfEjNjX8GXe/1k0tA2dp8bhvDp6uYAn/BESboNjOnnq6ydMkwWUBCHk+uRm/Jdz ZXmGthe3fi+GWe9Q4Bu/UoC1gdRCAOxMEb0ZTNQKel/YBgv8+k2Plvs1W5iNs/X7OJ2U AJllz6dYpkGXhXJSYgsUkwnfjeR53mztrP2N8lsKJt4zYrm5x67tw2+bYuIPp46195Dk AfZQ== X-Gm-Message-State: AOAM531dQoK2+bj6ANl310HP9b9Wamp/mti1McgxfoydVLtSnIJl2t8X Thdu23FYY59oO+0RorOHkpsA/IczIZShGo5cHsWsQSQAjTrPE0n+MvDb0Jc6M2egWIZ5l4uZURB JdhmtXxJfs/zufdIwogSGKvsKS2ErSoL04zizjkedSBH/1scmB3N1DmSihHTJ0yOR4A== X-Received: from fawn.svl.corp.google.com ([2620:15c:2cd:202:ccf7:db54:b9d7:814f]) (user=morbo job=sendgmr) by 2002:a05:6214:10c8:: with SMTP id r8mr19696156qvs.28.1627330775317; Mon, 26 Jul 2021 13:19:35 -0700 (PDT) Date: Mon, 26 Jul 2021 13:19:24 -0700 In-Reply-To: <20210726201924.3202278-1-morbo@google.com> Message-Id: <20210726201924.3202278-4-morbo@google.com> Mime-Version: 1.0 References: <20210714091747.2814370-1-morbo@google.com> <20210726201924.3202278-1-morbo@google.com> X-Mailer: git-send-email 2.32.0.432.gabb21c7263-goog Subject: [PATCH v2 3/3] scsi: qla2xxx: remove unused variable 'status' From: Bill Wendling To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-scsi@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor , Nick Desaulniers , Ariel Elior , Sudarsana Kalluru , GR-everest-linux-l2@marvell.com, "David S . Miller" , Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, "James E . J . Bottomley" , "Martin K . Petersen" Cc: Bill Wendling Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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); -- 2.32.0.432.gabb21c7263-goog