[POWERPC] Remove unnecessary cast in arch_deref_entry_point()
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 23 May 2008 04:22:21 +0000 (14:22 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 23 May 2008 05:27:31 +0000 (15:27 +1000)
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>
arch/powerpc/kernel/kprobes.c

index c176c513566b3c1a179661bae346142fa5cd4bd0..23545a2f51f34d40c02f44840eb607985c5ddc4c 100644 (file)
@@ -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