From b0b1e3cbaeb9a53d309ad99f641bc7f7637d7040 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 22 Nov 2018 17:41:16 +0100 Subject: 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 --- src/gprs/gb_proxy.c | 10 ++++------ 1 file 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); -- cgit v1.2.3