Skip to content

Commit 7f56b6d

Browse files
tititiou36vineetgarc
authored andcommitted
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>
1 parent ecaa054 commit 7f56b6d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/arc/kernel/disasm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ int __kprobes disasm_next_pc(unsigned long pc, struct pt_regs *regs,
503503
{
504504
struct disasm_state instr;
505505

506-
memset(&instr, 0, sizeof(struct disasm_state));
507506
disasm_instr(pc, &instr, 0, regs, cregs);
508507

509508
*next_pc = pc + instr.instr_len;

0 commit comments

Comments
 (0)