diff options
author | SangYoun Kwak <sy.kwak@samsung.com> | 2024-08-08 15:30:38 +0900 |
---|---|---|
committer | SangYoun Kwak <sy.kwak@samsung.com> | 2024-08-08 15:49:08 +0900 |
commit | 66e3119ef4d7e673fe493eba218c41c542c7b730 (patch) | |
tree | 27f86a93e46100c7920b0dbdb28a6cbe84cdc772 | |
parent | 38cd18d8ad9eb0105a7d80f184e7e785453cda71 (diff) | |
download | resourced-66e3119ef4d7e673fe493eba218c41c542c7b730.tar.gz resourced-66e3119ef4d7e673fe493eba218c41c542c7b730.tar.bz2 resourced-66e3119ef4d7e673fe493eba218c41c542c7b730.zip |
resourced: Modify switch statement not to fall through
There was fall-through in the switch statement with other statements and
it decreases readability and maintainability so it was removed.
(This commit fixes same issue of
8ffd276da7741fd124d4571cfa899cb6bd2cbe08)
Change-Id: I35692a6f397cce1197f744896c7e42bef6d32ecf
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
-rw-r--r-- | src/resourced/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resourced/init.c b/src/resourced/init.c index b3262bc8..463c7dfa 100644 --- a/src/resourced/init.c +++ b/src/resourced/init.c @@ -300,8 +300,8 @@ int fixed_list_init(enum proc_type proc_type) case CPU_SCHED_NONE: if (attr.sched_nice == CPU_INIT_NICE) goto skip_scheduler_update; - - /* else go through */ + attr.sched_policy = SCHED_OTHER; + break; case CPU_SCHED_OTHER: attr.sched_policy = SCHED_OTHER; /* error = sched_getattr(pid, &attr, 0); |