diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2023-10-12 11:39:29 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2023-10-16 13:04:09 +0200 |
commit | 19ba9ead8a88ab02f3b00d5a6cab7853f03445e7 (patch) | |
tree | 6511f1ef890fb313d28e2ebf5e04f7913a736ab5 /arch/s390 | |
parent | s390: add support for DCACHE_WORD_ACCESS (diff) | |
download | linux-19ba9ead8a88ab02f3b00d5a6cab7853f03445e7.tar.xz linux-19ba9ead8a88ab02f3b00d5a6cab7853f03445e7.zip |
s390/vmem: remove unused variable
Fix the follow warning reported by sparse:
arch/s390/boot/vmem.c:170:15: warning: unused variable ‘entry’ [-Wunused-variable]
170 | pte_t entry;
| ^~~~~
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/boot/vmem.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/s390/boot/vmem.c b/arch/s390/boot/vmem.c index bdbfee86d1ac..007e87239bbf 100644 --- a/arch/s390/boot/vmem.c +++ b/arch/s390/boot/vmem.c @@ -162,8 +162,6 @@ static bool kasan_pmd_populate_zero_shadow(pmd_t *pmd, unsigned long addr, static bool kasan_pte_populate_zero_shadow(pte_t *pte, enum populate_mode mode) { - pte_t entry; - if (mode == POPULATE_KASAN_ZERO_SHADOW) { set_pte(pte, pte_z); return true; |