Xichao Zhao
unread,Aug 10, 2025, 11:43:15 PM8/10/25Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ryabin...@gmail.com, ak...@linux-foundation.org, gli...@google.com, andre...@gmail.com, dvy...@google.com, vincenzo...@arm.com, kasa...@googlegroups.com, linu...@kvack.org, linux-...@vger.kernel.org, Xichao Zhao
Simplify the code to enhance readability and maintain a consistent
coding style.
Signed-off-by: Xichao Zhao <
zhao....@vivo.com>
---
mm/kasan/init.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/mm/kasan/init.c b/mm/kasan/init.c
index ced6b29fcf76..e5810134813c 100644
--- a/mm/kasan/init.c
+++ b/mm/kasan/init.c
@@ -266,11 +266,9 @@ int __ref kasan_populate_early_shadow(const void *shadow_start,
}
if (pgd_none(*pgd)) {
- p4d_t *p;
if (slab_is_available()) {
- p = p4d_alloc(&init_mm, pgd, addr);
- if (!p)
+ if (!p4d_alloc(&init_mm, pgd, addr))
return -ENOMEM;
} else {
pgd_populate(&init_mm, pgd,
--
2.34.1