summaryrefslogtreecommitdiffhomepage
path: root/ir/stat
diff options
context:
space:
mode:
authorManuel Mohr <manuel.mohr@kit.edu>2016-11-03 10:16:22 +0100
committerManuel Mohr <manuel.mohr@kit.edu>2016-11-03 12:36:49 +0100
commit731a6fc90fb0a66b068c0c0c67547c837b2fae78 (patch)
treeb9b8eb82059765bf7fa0ab374d2d7d86bbc2f839 /ir/stat
parent4b5edb429f0ed06cc5b1e1ec92f1881ad8dc1cb7 (diff)
Assign return value for following check.
Found by PVS Studio.
Diffstat (limited to 'ir/stat')
-rw-r--r--ir/stat/stat_timing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/stat/stat_timing.c b/ir/stat/stat_timing.c
index 4efecd7..7317221 100644
--- a/ir/stat/stat_timing.c
+++ b/ir/stat/stat_timing.c
@@ -64,7 +64,7 @@ void timing_enter_max_prio(void)
new_scheduler = SCHED_FIFO;
new_sched_params = sched_params;
new_sched_params.sched_priority = sched_get_priority_max(new_scheduler);
- sched_setscheduler(0, new_scheduler, &new_sched_params);
+ res = sched_setscheduler(0, new_scheduler, &new_sched_params);
if (res < 0)
return;
@@ -83,7 +83,7 @@ void timing_leave_max_prio(void)
if (res < 0)
return;
- sched_setscheduler(0, scheduler, &sched_params);
+ res = sched_setscheduler(0, scheduler, &sched_params);
if (res < 0)
return;