From 061dcaa22693a03bf555b17c04b34f304484ebe4 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 10 Sep 2019 10:06:36 -0600 Subject: [PATCH] Fix typos in preceding commit. --- sched/sched/sched_rrgetinterval.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sched/sched/sched_rrgetinterval.c b/sched/sched/sched_rrgetinterval.c index 9de84f7932..1f44af2b67 100644 --- a/sched/sched/sched_rrgetinterval.c +++ b/sched/sched/sched_rrgetinterval.c @@ -124,7 +124,7 @@ int sched_rr_get_interval(pid_t pid, struct timespec *interval) * scheduling. */ - if (rrtcb->flags & TCB_FLAG_POLICY_MASK) == TCB_FLAG_SCHED_RR) + if ((rrtcb->flags & TCB_FLAG_POLICY_MASK) == TCB_FLAG_SCHED_RR) { /* Convert the timeslice value from ticks to a timespec */ @@ -133,12 +133,12 @@ int sched_rr_get_interval(pid_t pid, struct timespec *interval) } else #endif - { - /* Return {0,0} meaning that the time slice is indefinite */ + { + /* Return {0,0} meaning that the time slice is indefinite */ - interval->tv_sec = 0; - interval->tv_nsec = 0; - } + interval->tv_sec = 0; + interval->tv_nsec = 0; + } return OK; }