Re: [PATCH] riscv: ccache: Remove unused variable

From: Christoph Hellwig
Date: Thu Jun 27 2019 - 04:59:29 EST


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 <yash.shah@xxxxxxxxxx>
> ---
> 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.