We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f96299b commit cb1a55eCopy full SHA for cb1a55e
arch/sh/kernel/kprobes.c
@@ -39,7 +39,7 @@ static DEFINE_PER_CPU(struct kprobe, saved_next_opcode2);
39
40
int __kprobes arch_prepare_kprobe(struct kprobe *p)
41
{
42
- kprobe_opcode_t opcode = *(kprobe_opcode_t *) (p->addr);
+ kprobe_opcode_t opcode = *p->addr;
43
44
if (OPCODE_RTE(opcode))
45
return -EFAULT; /* Bad breakpoint */
@@ -248,7 +248,7 @@ static int __kprobes kprobe_handler(struct pt_regs *regs)
248
p = get_kprobe(addr);
249
if (!p) {
250
/* Not one of ours: let kernel handle it */
251
- if (*(kprobe_opcode_t *)addr != BREAKPOINT_INSTRUCTION) {
+ if (*addr != BREAKPOINT_INSTRUCTION) {
252
/*
253
* The breakpoint instruction was removed right
254
* after we hit it. Another cpu has removed
0 commit comments