lwp: LwpCurrent can't be null, drop useless check
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
4a556eb8e7
commit
1fd4199b8a
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue