sched/: Various fixes for typos, improved parameter verification.

This commit is contained in:
Gregory Nutt
2018-01-12 18:26:45 -06:00
parent 48355b32dc
commit 9f80e4ccf1
6 changed files with 21 additions and 14 deletions
+2 -5
View File
@@ -1,7 +1,8 @@
/****************************************************************************
* sched/pthread/pthread_setschedparam.c
*
* Copyright (C) 2007, 2008, 2012, 2015 Gregory Nutt. All rights reserved.
* Copyright (C) 2007, 2008, 2012, 2015, 2018 Gregory Nutt. All rights
* reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -105,10 +106,6 @@ int pthread_setschedparam(pthread_t thread, int policy,
sinfo("thread ID=%d policy=%d param=0x%p\n", thread, policy, param);
/* Set the errno to some non-zero value (failsafe) */
set_errno(EINVAL);
/* Let sched_setscheduler do all of the work */
ret = sched_setscheduler((pid_t)thread, policy, param);