]> git.pond.sub.org Git - empserver/commitdiff
lwp: LwpCurrent can't be null, drop useless check
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 10 Jul 2017 18:39:02 +0000 (20:39 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 7 Aug 2017 08:08:31 +0000 (10:08 +0200)
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/lwp/lwp.c

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