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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=80d267f9aee6f1b5df602b5a19fb7b4923f17db2;p=openwrt%2Fstaging%2Fblogic.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