summaryrefslogtreecommitdiff
path: root/arch/arc
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-03-22 20:49:05 +0100
committerVineet Gupta <vgupta@kernel.org>2022-04-18 12:22:09 -0700
commit7f56b6d789dfbb4e72fa6912cd037fd916d4ee1c (patch)
tree92c4110ec63b62773d13e2ac73584ad03ef39637 /arch/arc
parentecaa054fc4c65ad337ec57aef2c6b041e0ef8f91 (diff)
ARC: Remove a redundant memset()
disasm_instr() already call memset(0) on its 2nd argument, so there is no need to clear it explicitly before calling this function. Remove the redundant memset(). Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'arch/arc')
-rw-r--r--arch/arc/kernel/disasm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arc/kernel/disasm.c b/arch/arc/kernel/disasm.c
index 897d5d70b39a..1e1db51b6941 100644
--- a/arch/arc/kernel/disasm.c
+++ b/arch/arc/kernel/disasm.c
@@ -503,7 +503,6 @@ int __kprobes disasm_next_pc(unsigned long pc, struct pt_regs *regs,
{
struct disasm_state instr;
- memset(&instr, 0, sizeof(struct disasm_state));
disasm_instr(pc, &instr, 0, regs, cregs);
*next_pc = pc + instr.instr_len;