[rtems commit] posix: Remove superfluous check

Sebastian Huber sebh at rtems.org
Sat Feb 20 14:25:22 UTC 2021


Module:    rtems
Branch:    master
Commit:    b207b378989e6d2b11956351d79b67ad9818f8cf
Changeset: http://git.rtems.org/rtems/commit/?id=b207b378989e6d2b11956351d79b67ad9818f8cf

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Feb 17 08:00:29 2021 +0100

posix: Remove superfluous check

The api pointer is never NULL.

Update #4244.

---

 cpukit/posix/src/psignalunblockthread.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/cpukit/posix/src/psignalunblockthread.c b/cpukit/posix/src/psignalunblockthread.c
index 63ed823..a1af20a 100644
--- a/cpukit/posix/src/psignalunblockthread.c
+++ b/cpukit/posix/src/psignalunblockthread.c
@@ -112,12 +112,6 @@ static void _POSIX_signals_Action_handler(
   hold_errno = executing->Wait.return_code;
 
   /*
-   * api may be NULL in case of a thread close in progress
-   */
-  if ( !api )
-    return;
-
-  /*
    *  In case the executing thread is blocked or about to block on something
    *  that uses the thread wait information, then this is a kernel bug.
    */



More information about the vc mailing list