Commit 731a6fc9 authored by Manuel Mohr's avatar Manuel Mohr
Browse files

Assign return value for following check.

Found by PVS Studio.
parent 4b5edb42
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment