projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
802ba53
)
s390/vmem: remove unused variable
author
Vasily Gorbik
<gor@linux.ibm.com>
Thu, 12 Oct 2023 09:39:29 +0000
(11:39 +0200)
committer
Vasily Gorbik
<gor@linux.ibm.com>
Mon, 16 Oct 2023 11:04:09 +0000
(13:04 +0200)
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>
arch/s390/boot/vmem.c
patch
|
blob
|
history
diff --git
a/arch/s390/boot/vmem.c
b/arch/s390/boot/vmem.c
index bdbfee86d1ace7a33443b75eca2911d075dd70b6..007e87239bbfb5739112b0841905955a6701a0d5 100644
(file)
--- 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;