From patchwork Mon Jul 24 12:19:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 124914 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp1768922vqg; Mon, 24 Jul 2023 05:35:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJDLRvtaCXSUqqYimf5pi8XPj+BBeabJBmgWhdtu4pQInxboLC8iJ7GR6PNMDLI1Nvb7fj X-Received: by 2002:a05:6a20:9701:b0:10f:1d33:d667 with SMTP id hr1-20020a056a20970100b0010f1d33d667mr9709443pzc.5.1690202123581; Mon, 24 Jul 2023 05:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690202123; cv=none; d=google.com; s=arc-20160816; b=gJh9rS66IROyAbKb68WobuMxU+QKPXnoctPN9TBkxy3i1RBUbB0f/akeFJRa7dmbE6 46/kNZiuHMFn/fiiFqS9Kv5pmS/6TMDQ2/i6vY46TgslFtmba1dlbc46o4NzyIlFadoA +digi/eBWz9o5jTTu+mVtBQJIOZwLujeZ8PVHuYuHKrj8hqazVpgr4iJoVmjsuIuSRD3 DS6WcXCYHETYqW25xuPFJuDQUir5zDeE/I+jKOZDNiT/zbypmdvKTTA9DG7leuGjL/8f 1Ah8eD6p5Hzg/4ciKZ27jGWid6ZW4iGoV/yfVdMXF74PVBK9qbhw9y8jpdl5X6yAzg6q N0qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VxR1W1m5sPZ5G7feNdM5A8fhqDz3Hvvg85Jjr/HWJkE=; fh=hSww+2nkiWfnj2mOSlizTSttIN8jAKETOSstpggsZLY=; b=Zp+hPGLUg/9dweI19ni3h7qfnCUA4Lo93gNU9G+7owQF9mTM+9smjbCnQFRgbOwmnf uyEwqUgn1pwZscUH+6HfCG3WZ3SvsGoQjiPD2Iuog9Inm2V8SuxJOsaEXuzVde52c5hd QSPB26P0CpFfXUrOfdJjtyfiy/5hTEWHoy2ooNjSM/dADtwsSoNRwlzXeGdbukhUI+cl dgouTGCch7rk6lz+UumZ6hRahKyMxmoTWPy7bnjTo/4M5DYFA/cOEKlNK5bgxsOAiSh8 w4UK7vzNwvbHH7JXs6Fay7IORhjzB9uC5iJcLxwHscUXFGVXOvQYRcEuMndFytCl/pH5 qNBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="r6er/ayW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kv16-20020a17090328d000b001adc5bc4d8asi8457580plb.572.2023.07.24.05.35.10; Mon, 24 Jul 2023 05:35:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="r6er/ayW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230017AbjGXMVA (ORCPT + 99 others); Mon, 24 Jul 2023 08:21:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229866AbjGXMU6 (ORCPT ); Mon, 24 Jul 2023 08:20:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EEBB13D; Mon, 24 Jul 2023 05:20:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A755561149; Mon, 24 Jul 2023 12:20:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA628C433CC; Mon, 24 Jul 2023 12:20:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690201236; bh=TZvmwAFuS4u+vLp3XBVWaUA/bTmykDSIMnh6Tz5bu+0=; h=From:To:Cc:Subject:Date:From; b=r6er/ayWEK7YxoMzdWjRyaig5T7E1A4u6f3j/u5DAVXNGwACIEqB0A6NIGTsE91xt oSSIKI/KWVhXMfkFwa7zn61kNTxz5qLAeC44plpJ9/fwvcTthqvyWfVsul8Rf4RM3v pT3isXuR7vmhKtehn3GOCKvob0ET5OyNEP0/ky7oCWAALPN6oX4AaaD00siWvllTGG IdZgZYBcmFjxfHuyxw4X0ingZiT7l8A7xHYnIv8ejNVHnEuuXp7wyd6gAMK8132NEq V/CB9P9KaaJLs2l6PS3YEEvbL6R5fc6I/+j2CMHIAakw+xrO6Aibw3hq3uGMPvygcG JeqeniSZu1dRw== From: Arnd Bergmann To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Manivannan Sadhasivam , "James E.J. Bottomley" , "Martin K. Petersen" , Ziqi Chen , Can Guo Cc: Arnd Bergmann , Asutosh Das , Andrew Halaney , Abel Vesa , linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: ufs: qcom: remove unused variable Date: Mon, 24 Jul 2023 14:19:58 +0200 Message-Id: <20230724122029.1430482-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772305381769518482 X-GMAIL-MSGID: 1772305381769518482 From: Arnd Bergmann A recent change removed the only user of a local variable that needs to now also be removed: drivers/ufs/host/ufs-qcom.c: In function 'ufs_qcom_mcq_esi_handler': drivers/ufs/host/ufs-qcom.c:1652:31: error: unused variable 'host' [-Werror=unused-variable] Fixes: 8f2b78652d055 ("scsi: ufs: qcom: Get queue ID from MSI index in ESI handler") Signed-off-by: Arnd Bergmann Reviewed-by: Abel Vesa Reviewed-by: Manivannan Sadhasivam Reported-by: kernelci.org bot Reviewed-by: Nick Desaulniers --- drivers/ufs/host/ufs-qcom.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c index 3ee5ff905f9a6..5728e94b6527b 100644 --- a/drivers/ufs/host/ufs-qcom.c +++ b/drivers/ufs/host/ufs-qcom.c @@ -1649,7 +1649,6 @@ static irqreturn_t ufs_qcom_mcq_esi_handler(int irq, void *data) struct msi_desc *desc = data; struct device *dev = msi_desc_to_dev(desc); struct ufs_hba *hba = dev_get_drvdata(dev); - struct ufs_qcom_host *host = ufshcd_get_variant(hba); u32 id = desc->msi_index; struct ufs_hw_queue *hwq = &hba->uhq[id];