OSDN Git Service

riscv: ccache: Remove unused variable
authorYash Shah <yash.shah@sifive.com>
Mon, 1 Jul 2019 10:40:30 +0000 (16:10 +0530)
committerPaul Walmsley <paul.walmsley@sifive.com>
Thu, 4 Jul 2019 10:12:24 +0000 (03:12 -0700)
commitdf7e9059cf6bdf4a8c11edeee30231f49815b071
tree6de1f04f9049f316865a4f55518e85c8d57efdfd
parent9e953cda5cdf1c230a3c9b7fc4d5e94f15885a9b
riscv: ccache: Remove unused variable

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. V2 of this patch add comments to
justify the readl calls without checking the return value.

Signed-off-by: Yash Shah <yash.shah@sifive.com>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/mm/sifive_l2_cache.c