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

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;