[PATCH] osmo-bsc[master]: bsc_api.c: bsc_handle_lchan_signal: Remove 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/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Sat Mar 17 00:23:11 UTC 2018


Review at  https://gerrit.osmocom.org/7326

bsc_api.c: bsc_handle_lchan_signal: Remove unused variable

Variable is unused since 3561bd48976dbee8dbd4659dad15be85a3e79ace.

Change-Id: I8ecff940ae848b965b26b7dc07153dd88b365fe4
---
M src/libbsc/bsc_api.c
1 file changed, 1 insertion(+), 4 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/26/7326/1

diff --git a/src/libbsc/bsc_api.c b/src/libbsc/bsc_api.c
index c476547..156ea1a 100644
--- a/src/libbsc/bsc_api.c
+++ b/src/libbsc/bsc_api.c
@@ -866,8 +866,6 @@
 static void handle_release(struct gsm_subscriber_connection *conn,
 			   struct bsc_api *bsc, struct gsm_lchan *lchan)
 {
-	int destruct = 1;
-
 	if (conn->secondary_lchan == lchan) {
 		osmo_timer_del(&conn->T10);
 		conn->secondary_lchan = NULL;
@@ -879,7 +877,7 @@
 
 	/* clear the connection now */
 	if (bsc->clear_request)
-		destruct = bsc->clear_request(conn, 0);
+		bsc->clear_request(conn, 0);
 
 	/* now give up all channels */
 	if (conn->lchan == lchan)
@@ -914,4 +912,3 @@
 {
 	osmo_signal_register_handler(SS_LCHAN, bsc_handle_lchan_signal, NULL);
 }
-

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8ecff940ae848b965b26b7dc07153dd88b365fe4
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list