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: v2.6.27-rc1~1058^2~196 X-Git-Url: http://pilppa.org/gitweb/?a=commitdiff_plain;h=80d267f9aee6f1b5df602b5a19fb7b4923f17db2;p=linux-2.6-omap-h63xx.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 c176c513566..23545a2f51f 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