lwp: LwpCurrent can't be null, drop useless check

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2017-07-10 20:39:02 +02:00
parent 4a556eb8e7
commit 1fd4199b8a

View file

@ -28,7 +28,7 @@
* lwp.c: lightweight process creation, destruction and manipulation * lwp.c: lightweight process creation, destruction and manipulation
* *
* Known contributors to this file: * Known contributors to this file:
* Markus Armbruster, 2004-2013 * Markus Armbruster, 2004-2017
*/ */
#include <config.h> #include <config.h>
@ -69,7 +69,7 @@ lwpReschedule(void)
static struct lwpProc *nextp; static struct lwpProc *nextp;
static int i; static int i;
if (LwpCurrent && (LwpCurrent->flags & LWP_STACKCHECK)) { if (LwpCurrent->flags & LWP_STACKCHECK) {
lwpStackCheck(LwpCurrent); lwpStackCheck(LwpCurrent);
} }