summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_setpriority.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-04-13 14:32:20 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-04-13 14:32:20 -0600
commit3cf6b4d6577c2f467dbb25dd0da8cdc6ad32a7b4 (patch)
tree0f3ba3c03a8e8e5e5ddd7ed6658f9aeefd233228 /nuttx/sched/sched_setpriority.c
parentb087a6d8732ffb869f3482c62b1b74e7b1869551 (diff)
downloadpx4-nuttx-3cf6b4d6577c2f467dbb25dd0da8cdc6ad32a7b4.tar.gz
px4-nuttx-3cf6b4d6577c2f467dbb25dd0da8cdc6ad32a7b4.tar.bz2
px4-nuttx-3cf6b4d6577c2f467dbb25dd0da8cdc6ad32a7b4.zip
More trailing whilespace removal
Diffstat (limited to 'nuttx/sched/sched_setpriority.c')
-rw-r--r--nuttx/sched/sched_setpriority.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/sched/sched_setpriority.c b/nuttx/sched/sched_setpriority.c
index 4b5b9ccc1..13f177271 100644
--- a/nuttx/sched/sched_setpriority.c
+++ b/nuttx/sched/sched_setpriority.c
@@ -109,7 +109,7 @@ int sched_setpriority(FAR struct tcb_s *tcb, int sched_priority)
/* Verify that the requested priority is in the valid range */
- if (sched_priority < SCHED_PRIORITY_MIN ||
+ if (sched_priority < SCHED_PRIORITY_MIN ||
sched_priority > SCHED_PRIORITY_MAX)
{
errno = EINVAL;
@@ -128,7 +128,7 @@ int sched_setpriority(FAR struct tcb_s *tcb, int sched_priority)
switch (task_state)
{
/* CASE 1. The task is running or ready-to-run and a context switch
- * may be caused by the re-prioritization
+ * may be caused by the re-prioritization
*/
case TSTATE_TASK_RUNNING:
@@ -162,7 +162,7 @@ int sched_setpriority(FAR struct tcb_s *tcb, int sched_priority)
case TSTATE_TASK_READYTORUN:
/* A context switch will occur if the new priority of the ready-to
- * run task is (strictly) greater than the current running task
+ * run task is (strictly) greater than the current running task
*/
if (sched_priority > rtcb->sched_priority)