summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2016-04-07 14:00:34 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2016-04-08 13:31:40 +1000
commitf0d7ce8d7c20d420151fbe32caaaea4d16f250f7 (patch)
tree350105b86007d463aa51bb70d5f58fee05153c8d
parenta5f3ee4c71b48761cf94a7451bb3880980ec574d (diff)
downloadlinux-f0d7ce8d7c20d420151fbe32caaaea4d16f250f7.tar.gz
linux-f0d7ce8d7c20d420151fbe32caaaea4d16f250f7.tar.xz
exit_thread-accept-a-task-parameter-to-be-exited-checkpatch-fixes
WARNING: space prohibited between function name and open parenthesis '(' #242: FILE: arch/ia64/kernel/process.c:577: +exit_thread (struct task_struct *tsk) WARNING: braces {} are not necessary for single statement blocks #331: FILE: arch/sh/kernel/process_64.c:310: + if (last_task_used_math == tsk) { last_task_used_math = NULL; } total: 0 errors, 2 warnings, 231 lines checked ./patches/exit_thread-accept-a-task-parameter-to-be-exited.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--arch/sh/kernel/process_64.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sh/kernel/process_64.c b/arch/sh/kernel/process_64.c
index bfd3855fe120..9d3e9916555d 100644
--- a/arch/sh/kernel/process_64.c
+++ b/arch/sh/kernel/process_64.c
@@ -307,9 +307,8 @@ void exit_thread(struct task_struct *tsk)
* which it would get safely nulled.
*/
#ifdef CONFIG_SH_FPU
- if (last_task_used_math == tsk) {
+ if (last_task_used_math == tsk)
last_task_used_math = NULL;
- }
#endif
}