Commit 7f56b6d7 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Vineet Gupta

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarVineet Gupta <vgupta@kernel.org>
parent ecaa054f
...@@ -503,7 +503,6 @@ int __kprobes disasm_next_pc(unsigned long pc, struct pt_regs *regs, ...@@ -503,7 +503,6 @@ int __kprobes disasm_next_pc(unsigned long pc, struct pt_regs *regs,
{ {
struct disasm_state instr; struct disasm_state instr;
memset(&instr, 0, sizeof(struct disasm_state));
disasm_instr(pc, &instr, 0, regs, cregs); disasm_instr(pc, &instr, 0, regs, cregs);
*next_pc = pc + instr.instr_len; *next_pc = pc + instr.instr_len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment