Skip to content

Commit

Permalink
exit_thread-accept-a-task-parameter-to-be-exited-checkpatch-fixes
Browse files Browse the repository at this point in the history
WARNING: space prohibited between function name and open parenthesis '('
torvalds#242: FILE: arch/ia64/kernel/process.c:577:
+exit_thread (struct task_struct *tsk)

WARNING: braces {} are not necessary for single statement blocks
torvalds#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>
  • Loading branch information
akpm00 authored and sfrothwell committed Apr 30, 2016
1 parent ee74aa6 commit 282928b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/sh/kernel/process_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 282928b

Please sign in to comment.