Skip to content

Commit

Permalink
parisc: Replace test_ti_thread_flag() with test_tsk_thread_flag()
Browse files Browse the repository at this point in the history
Use test_tsk_thread_flag() directly instead of test_ti_thread_flag() to
improve readability when the argument type is struct task_struct, it is
similar with commit 5afc785 ("arm64: Use test_tsk_thread_flag() for
checking TIF_SINGLESTEP").

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Tiezhu Yang authored and Helge Deller committed Feb 12, 2021
1 parent 31680c1 commit ae3c476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/parisc/include/asm/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static __inline__ void __user *arch_compat_alloc_user_space(long len)

static inline int __is_compat_task(struct task_struct *t)
{
return test_ti_thread_flag(task_thread_info(t), TIF_32BIT);
return test_tsk_thread_flag(t, TIF_32BIT);
}

static inline int is_compat_task(void)
Expand Down

0 comments on commit ae3c476

Please sign in to comment.