diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-11-22 17:41:16 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-11-26 10:49:15 +0000 |
commit | b0b1e3cbaeb9a53d309ad99f641bc7f7637d7040 (patch) | |
tree | 8152bae0f4eace6f3213c8c832f348a5f5dffc11 /src/gprs/gb_proxy.c | |
parent | 8b67202ef6725a0292e878a4625ad634261abd69 (diff) |
gbproxy: Remove unneeded parse_ctx param
The only use inside the function is only to log information which should
actually be provided by tmp_parse_ctx of each stored msg.
Change-Id: Ic186b92fa9bd0a2b853a0cf525c6f6feb9493897
Diffstat (limited to 'src/gprs/gb_proxy.c')
-rw-r--r-- | src/gprs/gb_proxy.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gprs/gb_proxy.c b/src/gprs/gb_proxy.c index 85c3c4704..faf4a8bf2 100644 --- a/src/gprs/gb_proxy.c +++ b/src/gprs/gb_proxy.c @@ -324,8 +324,7 @@ static void gbproxy_reset_imsi_acquisition(struct gbproxy_link_info* link_info) static int gbproxy_flush_stored_messages(struct gbproxy_peer *peer, struct msgb *msg, time_t now, - struct gbproxy_link_info* link_info, - struct gprs_gb_parse_context *parse_ctx) + struct gbproxy_link_info* link_info) { int rc; struct msgb *stored_msg; @@ -369,8 +368,8 @@ static int gbproxy_flush_stored_messages(struct gbproxy_peer *peer, "NSEI=%d(BSS) failed to send stored message " "(%s)\n", msgb_nsei(msg), - parse_ctx->llc_msg_name ? - parse_ctx->llc_msg_name : "BSSGP"); + tmp_parse_ctx.llc_msg_name ? + tmp_parse_ctx.llc_msg_name : "BSSGP"); msgb_free(stored_msg); } @@ -479,8 +478,7 @@ static int gbproxy_imsi_acquisition(struct gbproxy_peer *peer, /* The IMSI is now available. If flushing the messages fails, * then link_info has been deleted and we should return * immediately. */ - if (gbproxy_flush_stored_messages(peer, msg, now, link_info, - parse_ctx) < 0) + if (gbproxy_flush_stored_messages(peer, msg, now, link_info) < 0) return 0; gbproxy_reset_imsi_acquisition(link_info); |