Module: kamailio
Branch: master
Commit: 09318b6d0f224cace31d7db925f792b66cefd469
URL:
https://github.com/kamailio/kamailio/commit/09318b6d0f224cace31d7db925f792b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-12-27T09:24:33+01:00
seas: if expression on else not needed
- evaluation of it is true on else branch
---
Modified: src/modules/seas/event_dispatcher.c
---
Diff:
https://github.com/kamailio/kamailio/commit/09318b6d0f224cace31d7db925f792b…
Patch:
https://github.com/kamailio/kamailio/commit/09318b6d0f224cace31d7db925f792b…
---
diff --git a/src/modules/seas/event_dispatcher.c b/src/modules/seas/event_dispatcher.c
index 57483212686..e827629e53f 100644
--- a/src/modules/seas/event_dispatcher.c
+++ b/src/modules/seas/event_dispatcher.c
@@ -312,9 +312,7 @@ int dispatcher_main_loop(void)
poll_fds[3 + as_nr].revents = 0;
as_nr++; /*not very sure if this is thread-safe*/
unc_as_nr--;
- } else if(
- fd
- <= 0) { /* pull the upper set of incomplete AS down and take this one out*/
+ } else { /* pull the upper set of incomplete AS down and take this one out*/
poll_tmp->revents = 0;
for(k = i; k < (unc_as_nr - 1); k++) {
j = 3 + as_nr + k;