pespin submitted this change.
ipaccess: Reduce scope of line local variable
Change-Id: I9789cbce74f71505e9b7be1445a0a97007ee37da
---
M src/input/ipaccess.c
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index 51e6087..92a42f9 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -866,8 +866,6 @@
struct ipaccess_head *hh = (struct ipaccess_head *) msg->data;
struct msgb *rmsg;
int ret = 0;
- /* line might not exist if != bsc||bts */
- struct e1inp_line *line = link->line;
/* special handling for IPA CCM. */
if (hh->proto == IPAC_PROTO_IPACCESS) {
@@ -875,6 +873,8 @@
int len = msgb_l2len(msg);
OSMO_ASSERT(len > 0);
uint8_t msg_type = *data;
+ /* line might not exist if != bsc||bts */
+ struct e1inp_line *line = link->line;
/* peek the pong for our keepalive fsm */
if (line && msg_type == IPAC_MSGT_PONG) {
To view, visit change 38809. To unsubscribe, or for help writing mail filters, visit settings.