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:

committed by
Martin Schwidefsky

parent
37fe1d73a4
commit
7d25617597
@@ -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];
|
||||
|
Reference in New Issue
Block a user