* [PATCH] kdb: remove redundant memset in kdb_initbptab()
@ 2026-10-23 16:14 Sang-Heon Jeon
0 siblings, 0 replies; only message in thread
From: Sang-Heon Jeon @ 2026-10-23 16:14 UTC (permalink / raw)
To: Jason Wessel, Daniel Thompson
Cc: Douglas Anderson, kgdb-bugreport, linux-kernel
kdb_breakpoints is zero-initialized and not used until kdb_initbptab(),
which only runs once during boot. So the memset in kdb_initbptab() has
no effect.
So remove the memset.
No functional change.
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
---
kernel/debug/kdb/kdb_bp.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kernel/debug/kdb/kdb_bp.c b/kernel/debug/kdb/kdb_bp.c
index c0c2072f5452..d3a6f865e953 100644
--- a/kernel/debug/kdb/kdb_bp.c
+++ b/kernel/debug/kdb/kdb_bp.c
@@ -582,8 +582,6 @@ void __init kdb_initbptab(void)
/*
* First time initialization.
*/
- memset(&kdb_breakpoints, '\0', sizeof(kdb_breakpoints));
-
for (i = 0, bp = kdb_breakpoints; i < KDB_MAXBPT; i++, bp++)
bp->bp_free = 1;
base-commit: fdbdd0ccb30af18d3b29e714ac8d5ab6163279e0
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-23 16:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23 16:14 [PATCH] kdb: remove redundant memset in kdb_initbptab() Sang-Heon Jeon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®