Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp217986pxv; Wed, 14 Jul 2021 02:20:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJw/UPUC5oH/mco91kMgaxpKLJrVfRSo3o9qzwSLMyphdT9HhpKTphKGnhQtljlUwrLA2a X-Received: by 2002:a5e:930e:: with SMTP id k14mr6605273iom.136.1626254431838; Wed, 14 Jul 2021 02:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626254431; cv=none; d=google.com; s=arc-20160816; b=WcBZi0kLxOFVBomCq3US4WBZ2tkN3yWh7jdzE1A7laVmpiu816jPEawpyN01Xcfr+x aA5iA/HX6uU9jxsf31KXLsgTuhTPFY9OHFHJfV1EgRK6sUwT3puhUI3DNjiYUnW1nmvT Yrl6qHisgWm70DLnLXasMWFnk/NR3NYn3LCF7hoye+adXuMiFY29WGBGSe6XbcUIkmqL 1Hqz75VNSzU0rSuR6td00qXN+mQXBRqsmVvYVeybWfI8FQWqdYDRDAy0NeF638n1bWNi jIOXOclsyaKvP1X5bCABDDKbP1sKukGXA/V2F1c68pdUwNP+Vqfy6Kt2chlWPEdp7wR/ dfdA== 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=FcI/RIY6fqkfvACcmmOBOBRj9VFnw/wDoj5wb2ryU84=; b=YRx5igl4tQ3iNGnvxlSLCQo7AdeDOL6H0aPwIFqZO71NNHtUVHNhJVkS6y7EVZ+JoZ C49DEiBL3+vzmMZqDHksvO+BEWY62d9lq5j2ODCOcafzFSEDyIxToM71ZuD+2Vz8Hit6 NoPQPpy4dB2hNiPLu7dwBTOlrpX7kTJKCyCSjtohXukPDTJ8pDhqY0QzHxAKFQ2mXKX6 MaYaDpPoqjjk53vnqHEgbtc+qKPwrakIQf0shtcPZ6mhpvzuGcsXzNZ7ZxHRjVSyMMkU FC6D/NC/p4mz2WQ67n7zc8AwtciqVPEAPD7TbMPV9PDodZWEVKlIJAn52P67tIxbwtTo gm1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TNW6CpKu; 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 a9si1690848ilr.103.2021.07.14.02.20.19; Wed, 14 Jul 2021 02:20:31 -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=TNW6CpKu; 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 S238723AbhGNJVD (ORCPT + 99 others); Wed, 14 Jul 2021 05:21:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238728AbhGNJU7 (ORCPT ); Wed, 14 Jul 2021 05:20:59 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEAE4C061766 for ; Wed, 14 Jul 2021 02:18:07 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id j186-20020a25d2c30000b029055ed6ffbea6so1776545ybg.14 for ; Wed, 14 Jul 2021 02:18:07 -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=FcI/RIY6fqkfvACcmmOBOBRj9VFnw/wDoj5wb2ryU84=; b=TNW6CpKuyM53R38THHQO0l30/FsZ9YikSCaulyuCOpmdp6eXcsXkoxcbkYcVlTa3HD x5q6GlfQUimHaaisAjdfphUOz0/lKnbvGxdC7Oi6oP5BWmA7oqA7E3vm+QLuu6KygR9u 7yXW9+luCs5FgL4y1khvw0TU3nzvQa7VivWYxwQur9hapOKYRW2OkZubYBaudJiGGbWS bKx9ntWf5faubfJyRLuMSGX8nYX+mPHREiJSDZsAXBBYqLWVPb5DwY/88NJsaN3WrC5W 9r2Hm467OjHp1bMdchvb14u00iAstp/YVlY8woschlERs0/4VVpFxu1lpj9OrCNU+r2e +4eA== 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=FcI/RIY6fqkfvACcmmOBOBRj9VFnw/wDoj5wb2ryU84=; b=dzrPuiff00tzBuVk5pTIUQ/a4I8PM2Pym4LE814bh96IGy8d68nnUP9yinEUjsn58h tTxEx7CSbY0xovmqtaqWK8EDvF97fOczD+YvdXSDxw4Xz1IPzl16/ptZ9KSg1OfFCHsc gWgA/8XHVabGjdjCumak3p4c37j+EecAmO1HPTJNBwGENo7M3c0xX+5d++GG8aY2nIph cqEbzQM0u12UMThuyuM7OR3RxC7+BZeypj0gUVjysFz+X0hQJg5IgQQjYrT1hn64VyBI RsWdgbpCvBFdxw1lGK7KzyoQ9xIES95qZUrQQR3Xxsa1pHrdHli6VG3BHNU9APAfu91P sNYQ== X-Gm-Message-State: AOAM531ctFAZmFGW5Yt9ruobdz1GJ2CAxyWVOrOP7thaea+ANC7IMALG +gmzFi2adQ6cB5OmdRgapnL6O9s56jR1AVNcWKUZFDzIIiSr/y2M65jLHimNj5xCQ7gfukK7adW zWMfRFbtQ5Vao9SIA7AS3BG5QvN93bzrobc2xs/B2OnYMz1RSNjG6JM5RrpxqzZPtAg== X-Received: from fawn.svl.corp.google.com ([2620:15c:2cd:202:c569:463c:c488:ac2]) (user=morbo job=sendgmr) by 2002:a25:7355:: with SMTP id o82mr11572449ybc.471.1626254286988; Wed, 14 Jul 2021 02:18:06 -0700 (PDT) Date: Wed, 14 Jul 2021 02:17:47 -0700 In-Reply-To: <20210714091747.2814370-1-morbo@google.com> Message-Id: <20210714091747.2814370-4-morbo@google.com> Mime-Version: 1.0 References: <20210714091747.2814370-1-morbo@google.com> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog Subject: [PATCH 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.93.g670b81a890-goog