[MERGED] libosmocore[master]: gsm/gsm0411_smr.c: strip unused variable

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Wed May 17 10:15:11 UTC 2017


Vadim Yanitskiy has submitted this change and it was merged.

Change subject: gsm/gsm0411_smr.c: strip unused variable
......................................................................


gsm/gsm0411_smr.c: strip unused variable

Change-Id: I53f69913907588c45a9661c4e86e1bfb57a2418f
---
M src/gsm/gsm0411_smr.c
1 file changed, 1 insertion(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/gsm/gsm0411_smr.c b/src/gsm/gsm0411_smr.c
index 6d7fb8b..eb8aec0 100644
--- a/src/gsm/gsm0411_smr.c
+++ b/src/gsm/gsm0411_smr.c
@@ -287,7 +287,6 @@
 	struct gsm48_hdr *gh = (struct gsm48_hdr*)msg->l3h;
 	struct gsm411_rp_hdr *rp_data = (struct gsm411_rp_hdr*)&gh->data;
 	uint8_t msg_type =  rp_data->msg_type & 0x07;
-	int rc;
 
 	/* check direction */
 	if (inst->network == (msg_type & 1)) {
@@ -329,7 +328,7 @@
 		return -EINVAL;
 	}
 
-	return rc;
+	return 0;
 }
 
 static int gsm411_mnsms_error_ind_tx(struct gsm411_smr_inst *inst,

-- 
To view, visit https://gerrit.osmocom.org/2647
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I53f69913907588c45a9661c4e86e1bfb57a2418f
Gerrit-PatchSet: 2
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list