mgcp_e1: use return value of e1inp_line_update()

The function e1inp_line_update() is called without assigning its return
code to the rc variable.

Change-Id: Ia72ea2dca210b038766151d547f66b7b7139a2c4
Fixes: CID#212160
This commit is contained in:
Philipp Maier 2020-08-13 22:26:29 +02:00 committed by laforge
parent 55863e42c1
commit c8acee2234
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ int mgcp_e1_init(struct mgcp_trunk *trunk, uint8_t ts_nr)
rc = e1inp_ts_config_raw(&e1_line->ts[ts_nr - 1], e1_line, e1_recv_cb);
if (rc < 0)
return -EINVAL;
e1inp_line_update(e1_line);
rc = e1inp_line_update(e1_line);
if (rc < 0)
return -EINVAL;