mgcp_client: drop nunnecessary else statement

There is an elarly return statement, so there is no need for an else
branch.

Change-Id: I96d0d468ccab302f9add206164f4d5b1b768bb48
This commit is contained in:
Philipp Maier 2021-06-07 22:39:00 +02:00
parent b3d14eb552
commit eb984bd630
1 changed files with 1 additions and 2 deletions

View File

@ -1378,8 +1378,7 @@ struct msgb *mgcp_msg_gen(struct mgcp_client *mgcp, struct mgcp_msg *mgcp_msg)
rc_sdp = add_sdp(msg, mgcp_msg, mgcp);
if (rc_sdp == -2)
return NULL;
else
rc += rc_sdp;
rc += rc_sdp;
}
if (rc != 0) {