Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1814327ybd; Thu, 27 Jun 2019 02:00:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqtN8hPGoSLPkjPjGhKkWQfVXjUgPp8FB7A1XfBBOMG5ZR88Z2rHKdzAtv2C3esRiy5iz3 X-Received: by 2002:a63:f959:: with SMTP id q25mr2681181pgk.357.1561626043202; Thu, 27 Jun 2019 02:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561626043; cv=none; d=google.com; s=arc-20160816; b=0F189LrrL4qzA6GgBkOM8Q047lWA1Oot8sW3lU4YF/W+QkOG+L+7cHSRaFpm4clQ7F XKWG5Mwz1DASQKAzr0brkl8nYNSn3JcFyMfC0dm2BWvERLHobYmZlonAuf4s3Z4XCd01 JK6Wfd+LAN8s1XnB9KF2UPGF6A5iahnYRzaf8y/EhUg8rNEG7OSK02cDoXCrHp1lmkF4 TNmlhnNIuCDPKfES7Rp8H80CGiYwrgfecUoWcjCTzKGCWht+Ktk7868dGRe3sUVDJ6JO PuEPrCd5HKYrYupRV+KzVB408q7hdxzqWDQ5vNmM4sPspVCNHJMbU0WEU/9mZUFJ7uSb IcMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UdPPM47sb/7Te8Jd7ck1t2jr+yk4nMMu5ZlyAWmGh4U=; b=EwVNqOC06L3mlaMY5VLExX+fubQkav05G6VAUuoJpQPvSM2pFB2DZIchoK4U1Gvk+w DN6DRM3kzJTeIE8FPrW4yLKNFHM97t4dtlLwPLzoV8IMVa6V0jxUh6wXFQmRyryCM1+t liQU8LYqlRYLTr0sWP2tXY8ucqOolvd4u8WaRbuEAS4B9PtvEJi6jE/H72gYNi5T/ycA 9BVZRoEesQ3Es+7fYqGOEd/18N+jP4k5ce4+CCrnr0Bmv71Bp/HYn7mSVJ42SHPJ/p8K 7pii2mwP1PmlOsvSjXRxUqbD/K1R4scGP6eZY+hMJd20fJv+zYrtsXRNQy14XU9YIJFK U77g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pCvMyR8x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si1730471plb.407.2019.06.27.02.00.23; Thu, 27 Jun 2019 02:00:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=pCvMyR8x; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726476AbfF0I72 (ORCPT + 99 others); Thu, 27 Jun 2019 04:59:28 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38592 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726295AbfF0I71 (ORCPT ); Thu, 27 Jun 2019 04:59:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UdPPM47sb/7Te8Jd7ck1t2jr+yk4nMMu5ZlyAWmGh4U=; b=pCvMyR8x4xw/hpNND5pi6MT+z DChsNg0OC2A6xPjQglftVfoAF4un8V3nmOVaoBXcFNKvQz3NIkKGGWGL30JD1JzLR6/9MfQTGyjh6 xgB0rtNfvOKIappaoRDipmrdZDe8fb6xizO366dxdMjiwZeGLwourt0J4cz87Mmxbjc7yt1leiQ2t vEm8R0fnCpFjRVSfFK/XW3uytPtRZIntRLxyqmjzJZ3KEhgyrAU6uwx6UvjcbmgLM4sBRdorbP0cR 17K25/odK7fVGUFkfkxN1gXaXTpiBzWX5OmNaaWZSI8SnWkpXlxn0zMQNQBGkkEtFhQyyEVqMNtX0 y19HFkpyA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hgQFa-0006As-NS; Thu, 27 Jun 2019 08:59:26 +0000 Date: Thu, 27 Jun 2019 01:59:26 -0700 From: Christoph Hellwig To: Yash Shah Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, paul.walmsley@sifive.com, palmer@sifive.com, aou@eecs.berkeley.edu, sachin.ghadi@sifive.com Subject: Re: [PATCH] riscv: ccache: Remove unused variable Message-ID: <20190627085926.GA15810@infradead.org> References: <1561624486-22867-1-git-send-email-yash.shah@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1561624486-22867-1-git-send-email-yash.shah@sifive.com> User-Agent: Mutt/1.11.4 (2019-03-13) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 27, 2019 at 02:04:46PM +0530, Yash Shah wrote: > Reading the count register clears the interrupt signal. Currently, the > count registers are read into 'regval' variable but the variable is > never used. Therefore remove it. > > Signed-off-by: Yash Shah > --- > arch/riscv/mm/sifive_l2_cache.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) Unrelated note: that driver absolutely does not belong into arch/riscv/mm. arch/$(ARCH)/mm is for architecte-specific memory management code, not for random drivers.