Skip to content

Commit

Permalink
[POWERPC] Remove unnecessary cast in arch_deref_entry_point()
Browse files Browse the repository at this point in the history
func_descr_t->entry is already an unsigned long.  Mea culpa.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed May 23, 2008
1 parent 72cac21 commit 80d267f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
#ifdef CONFIG_PPC64
unsigned long arch_deref_entry_point(void *entry)
{
return (unsigned long)(((func_descr_t *)entry)->entry);
return ((func_descr_t *)entry)->entry;
}
#endif

Expand Down

0 comments on commit 80d267f

Please sign in to comment.