From 6b5bbee25fcdb90dd6051678a23e78ab2133a199 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 19 Feb 2019 23:50:16 +0100 Subject: oc2g: Remove unused variables Change-Id: I6738adb6b0ae50905351c67c259d7a77cb250624 --- src/osmo-bts-oc2g/l1_if.c | 1 - src/osmo-bts-oc2g/main.c | 1 - src/osmo-bts-oc2g/misc/oc2gbts_clock.c | 2 -- src/osmo-bts-oc2g/misc/oc2gbts_mgr.c | 1 - 4 files changed, 5 deletions(-) (limited to 'src/osmo-bts-oc2g') diff --git a/src/osmo-bts-oc2g/l1_if.c b/src/osmo-bts-oc2g/l1_if.c index 884ce4e2..52ec3e7a 100644 --- a/src/osmo-bts-oc2g/l1_if.c +++ b/src/osmo-bts-oc2g/l1_if.c @@ -1266,7 +1266,6 @@ static int activate_rf_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp, GsmL1_Status_t status; int on = 0; unsigned int i; - struct gsm_bts *bts = trx->bts; if (sysp->id == Oc2g_PrimId_ActivateRfCnf) on = 1; diff --git a/src/osmo-bts-oc2g/main.c b/src/osmo-bts-oc2g/main.c index e685150e..ab3d36d7 100644 --- a/src/osmo-bts-oc2g/main.c +++ b/src/osmo-bts-oc2g/main.c @@ -83,7 +83,6 @@ unsigned int dsp_trace = 0x00000000; int bts_model_init(struct gsm_bts *bts) { - struct gsm_bts_trx *trx; struct stat st; static struct osmo_fd accept_fd, read_fd; int rc; diff --git a/src/osmo-bts-oc2g/misc/oc2gbts_clock.c b/src/osmo-bts-oc2g/misc/oc2gbts_clock.c index acbbbc5c..5263e3ec 100644 --- a/src/osmo-bts-oc2g/misc/oc2gbts_clock.c +++ b/src/osmo-bts-oc2g/misc/oc2gbts_clock.c @@ -100,8 +100,6 @@ static int sysfs_write_str(int fd, const char *str) int oc2gbts_clock_err_open(void) { - int rc; - int fault; if (clkerr_fd_err < 0) { clkerr_fd_err = open(CLKERR_ERR_SYSFS, O_RDONLY); diff --git a/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c b/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c index 45ecc65d..f8768e4a 100644 --- a/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c +++ b/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c @@ -271,7 +271,6 @@ int main(int argc, char **argv) { void *tall_msgb_ctx; int rc; - pthread_t tid; tall_mgr_ctx = talloc_named_const(NULL, 1, "bts manager"); tall_msgb_ctx = talloc_named_const(tall_mgr_ctx, 1, "msgb"); -- cgit v1.2.3