From patchwork Mon Oct 24 15:12:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 13017700 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52192FA373D for ; Mon, 24 Oct 2022 15:13:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=DgsP10Qyd8xy+Iuda72D9a8836RKYmBBbltnEHTy9VI=; b=gar8jgciqbQYEV kcHvcZ7DreqQ2lB3eOWuhVr+cc0nACpe3rVxP8lpu+kPqtRFTFo44wOVDDwvDG4VEzAf/2EINoe6f ukGr9NzNss8JWbSYxpPw4wM+Mh3MlMXy4L3dsflzKPtrLVkHOkvESKpBYZAXmfvIF+rUjU8znX5Gs j29TtEt1XYZh38eadWvm34E6XRkkX1Nm6gyDHI1xOnooEej2INinO66w0/14ATbMH7s1FMV2xSpts LIxmM447vBbSYRnnCqKqpeK7nWfwgFW6CLKR+Ue2iYJ41u3jfA0kQkBeq2R08CnbzZZC8teFB67kw adeIQAmKPd9KC9eBKkig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1omz7e-0024Er-HQ; Mon, 24 Oct 2022 15:12:14 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1omz7b-0024Dy-0h for linux-arm-kernel@lists.infradead.org; Mon, 24 Oct 2022 15:12:12 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A9D406143A; Mon, 24 Oct 2022 15:12:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84939C433C1; Mon, 24 Oct 2022 15:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666624329; bh=NR95fQD0AlurKJdHSHQWI8XxPL1W3GaIT4ou4lR6QNw=; h=From:To:Cc:Subject:Date:From; b=ne3asSo0nI4dvMnGPjosAE+OsWId8FpC8kbfzBopzbdRH2JVLhnrP9eE3vltMf4jz 7pYNeXGx2MUuiBVWOL59XCbL4Zq1xN6ka11AAax9DGxy87yjkZz/qnYV0LDY83m1Lj 3CW5ydF/KR7X1IEJf7+MqeVQQIuaFLrDlcHtXFaHSslhz02oOjOGNopjy2/T6OBtgD lRrh/cvFpWgDVYG2ND72R6G2pUZ1+oy+IWnvumaR9K5kXCdo8W5B/XEpUBUU0XFKiD er/F3Dozfy2xxx514/iwpT3ihAxwxEO2OmvYtcEOPhRmo12U4mmXnX8yV4Uqdd3F/m TubuGoBl4Jv6Q== From: Nathan Chancellor To: Mathieu Poirier , Suzuki K Poulose Cc: Mike Leach , Leo Yan , James Clark , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nathan Chancellor Subject: [PATCH] coresight: cti: Remove unused variables in cti_{dis,en}able_hw() Date: Mon, 24 Oct 2022 08:12:01 -0700 Message-Id: <20221024151201.2215380-1-nathan@kernel.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221024_081211_141032_0ABCD8C8 X-CRM114-Status: GOOD ( 11.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Clean up the following warnings, as the variables are no longer used. drivers/hwtracing/coresight/coresight-cti-core.c:93:17: warning: unused variable 'dev' [-Wunused-variable] struct device *dev = &drvdata->csdev->dev; ^ drivers/hwtracing/coresight/coresight-cti-core.c:154:17: warning: unused variable 'dev' [-Wunused-variable] struct device *dev = &drvdata->csdev->dev; ^ 2 warnings generated. Fixes: 665c157e0204 ("coresight: cti: Fix hang in cti_disable_hw()") Signed-off-by: Nathan Chancellor --- drivers/hwtracing/coresight/coresight-cti-core.c | 2 -- 1 file changed, 2 deletions(-) base-commit: 665c157e0204176023860b51a46528ba0ba62c33 diff --git a/drivers/hwtracing/coresight/coresight-cti-core.c b/drivers/hwtracing/coresight/coresight-cti-core.c index 4a02ae23d3a0..c6e8c6542f24 100644 --- a/drivers/hwtracing/coresight/coresight-cti-core.c +++ b/drivers/hwtracing/coresight/coresight-cti-core.c @@ -90,7 +90,6 @@ void cti_write_all_hw_regs(struct cti_drvdata *drvdata) static int cti_enable_hw(struct cti_drvdata *drvdata) { struct cti_config *config = &drvdata->config; - struct device *dev = &drvdata->csdev->dev; unsigned long flags; int rc = 0; @@ -151,7 +150,6 @@ static void cti_cpuhp_enable_hw(struct cti_drvdata *drvdata) static int cti_disable_hw(struct cti_drvdata *drvdata) { struct cti_config *config = &drvdata->config; - struct device *dev = &drvdata->csdev->dev; struct coresight_device *csdev = drvdata->csdev; spin_lock(&drvdata->spinlock);