ARM: ptrace: Code cleanup

Message ID 20240125090016.536043-1-chentao@kylinos.cn
State New
Headers
Series ARM: ptrace: Code cleanup |

Commit Message

Kunwu Chan Jan. 25, 2024, 9 a.m. UTC
  This part was commented in about 19 years before.

If there are no plans to enable this part code in the future,
we can remove this dead code.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
---
 arch/arm/kernel/ptrace.c | 8 --------
 1 file changed, 8 deletions(-)
  

Patch

diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index c421a899fc84..71c0b2233f56 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -37,13 +37,6 @@ 
  * in exit.c or in signal.c.
  */
 
-#if 0
-/*
- * Breakpoint SWI instruction: SWI &9F0001
- */
-#define BREAKINST_ARM	0xef9f0001
-#define BREAKINST_THUMB	0xdf00		/* fill this in later */
-#else
 /*
  * New breakpoints - use an undefined instruction.  The ARM architecture
  * reference manual guarantees that the following instruction space
@@ -54,7 +47,6 @@ 
  */
 #define BREAKINST_ARM	0xe7f001f0
 #define BREAKINST_THUMB	0xde01
-#endif
 
 struct pt_regs_offset {
 	const char *name;