mgcp-client: Remove impossible code path

read(4096 - 128) cannot return > 4096 - 128.

Change-Id: I352c3b28c8de6482277cb84cd0f51893494dc929
This commit is contained in:
Pau Espin 2022-06-29 18:44:52 +02:00
parent cfef36837e
commit 147184eb06
1 changed files with 0 additions and 4 deletions

View File

@ -726,10 +726,6 @@ static int mgcp_do_read(struct osmo_fd *fd)
msgb_free(msg);
return -1;
} else if (ret > 4096 - 128) {
LOGPMGW(mgcp, LOGL_ERROR, "Too much data: %s: %d\n", osmo_sock_get_name2(fd->fd), ret);
msgb_free(msg);
return -1;
}
msg->l2h = msgb_put(msg, ret);