From: Michael Ellerman Date: Fri, 23 May 2008 04:22:21 +0000 (+1000) Subject: [POWERPC] Remove unnecessary cast in arch_deref_entry_point() X-Git-Tag: MMI-PSA29.97-13-9~33646^2~196 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=80d267f9aee6f1b5df602b5a19fb7b4923f17db2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [POWERPC] Remove unnecessary cast in arch_deref_entry_point() func_descr_t->entry is already an unsigned long. Mea culpa. Signed-off-by: Michael Ellerman Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kprobes.c index c176c513566b..23545a2f51f3 100644 --- a/arch/powerpc/kernel/kprobes.c +++ b/arch/powerpc/kernel/kprobes.c @@ -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