MINOR: applets: no need to check for runqueue's emptiness in appctx_res_wakeup()
The __appctx_wakeup() function already does it. It matters with threads
enabled because it simplifies the code in appctx_res_wakeup() to get rid
of this test.
diff --git a/include/proto/applet.h b/include/proto/applet.h
index a6f2633..51a7e26 100644
--- a/include/proto/applet.h
+++ b/include/proto/applet.h
@@ -147,11 +147,6 @@
SPIN_UNLOCK(APPLETS_LOCK, &applet_active_lock);
return 1;
}
-
- if (!LIST_ISEMPTY(&appctx->runq)) {
- SPIN_UNLOCK(APPLETS_LOCK, &applet_active_lock);
- return 0;
- }
__appctx_wakeup(appctx);
SPIN_UNLOCK(APPLETS_LOCK, &applet_active_lock);
return 1;