mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 10:46:02 +08:00
sched/: Various fixes for typos, improved parameter verification.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user