summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc64/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc64/elf.h')
-rw-r--r--include/asm-ppc64/elf.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/asm-ppc64/elf.h b/include/asm-ppc64/elf.h
index 6c42d61bedd1..085eedb956fe 100644
--- a/include/asm-ppc64/elf.h
+++ b/include/asm-ppc64/elf.h
@@ -221,9 +221,7 @@ do { \
set_thread_flag(TIF_ABI_PENDING); \
else \
clear_thread_flag(TIF_ABI_PENDING); \
- if (ibcs2) \
- set_personality(PER_SVR4); \
- else if (current->personality != PER_LINUX32) \
+ if (personality(current->personality) != PER_LINUX32) \
set_personality(PER_LINUX); \
} while (0)