aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-02-19 23:50:16 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2019-02-20 00:02:34 +0100
commit6b5bbee25fcdb90dd6051678a23e78ab2133a199 (patch)
tree58c35ec68700d3a3f61309c9229d0c034c1ee2b3
parent546056c9c896da1bd7a760a5ad2b7cdd43494a1e (diff)
oc2g: Remove unused variables
-rw-r--r--src/osmo-bts-oc2g/l1_if.c1
-rw-r--r--src/osmo-bts-oc2g/main.c1
-rw-r--r--src/osmo-bts-oc2g/misc/oc2gbts_clock.c2
-rw-r--r--src/osmo-bts-oc2g/misc/oc2gbts_mgr.c1
4 files changed, 0 insertions, 5 deletions
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");