s390: make use of user_mode() macro where possible

We use the user_mode() helper already at several places but also
have the open coded variant at other places.
Convert the code to always use the helper function.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
Heiko Carstens
2012-07-27 10:31:12 +02:00
committed by Martin Schwidefsky
parent 37fe1d73a4
commit 7d25617597
4 changed files with 15 additions and 15 deletions

View File

@@ -58,7 +58,7 @@ void s390_backtrace(struct pt_regs * const regs, unsigned int depth)
unsigned long head;
struct stack_frame* head_sf;
if (user_mode (regs))
if (user_mode(regs))
return;
head = regs->gprs[15];