pespin submitted this change.
osmo_io: segmentation: Remove unneeded impossible check
The rc <= 0 case is already early returned above.
Change-Id: I9316730aeaf7c7efd3ea8965ab43fa21f844260c
---
M src/core/osmo_io.c
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/osmo_io.c b/src/core/osmo_io.c
index 45aaef3..15703cf 100644
--- a/src/core/osmo_io.c
+++ b/src/core/osmo_io.c
@@ -343,7 +343,7 @@
do {
pending = NULL;
res = iofd_handle_segmentation(iofd, msg, &pending);
- if (res != IOFD_SEG_ACT_DEFER || rc < 0) {
+ if (res != IOFD_SEG_ACT_DEFER) {
iofd->io_ops.read_cb(iofd, rc, msg);
/* The user could unregister/close the iofd during read_cb() above.
* Once that's done, it doesn't expect to receive any more events,
To view, visit change 39360. To unsubscribe, or for help writing mail filters, visit settings.