From 06b1586111b5483ba3ed9820f4f144ccdce77768 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Thu, 9 Sep 2010 09:35:36 +0200 Subject: cesar/bsu: remove useless code --- cesar/bsu/beacon/src/beacon.c | 1 + cesar/bsu/src/bsu.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cesar/bsu/beacon/src/beacon.c b/cesar/bsu/beacon/src/beacon.c index d1b7256ecd..c545225207 100644 --- a/cesar/bsu/beacon/src/beacon.c +++ b/cesar/bsu/beacon/src/beacon.c @@ -28,6 +28,7 @@ bsu_beacon_schedules_reset (bsu_beacon_schedules_t *schedule) schedule->ps.nb = 0; schedule->nps.ns = 0; schedule->bpsto.present = false; + schedule->bpsto.bpsto = 0; } /** diff --git a/cesar/bsu/src/bsu.c b/cesar/bsu/src/bsu.c index 759f2337ea..d33401b7ce 100644 --- a/cesar/bsu/src/bsu.c +++ b/cesar/bsu/src/bsu.c @@ -686,7 +686,6 @@ bsu_beacon_process (bsu_t *ctx, pb_beacon_t *beacon, ctx->pbproc, params->preamble_date + bsu_aclf_beacon_period_tck (ctx->aclf)); /* Read the beacon. */ - u32 bpsto = 0; ctx->sta_avln->bs.nid = tinfo.nid; ctx->sta_avln->bs.snid = params->snid; ctx->sta_avln->bs.schedules.bpsto.bpsto = 0; @@ -694,8 +693,6 @@ bsu_beacon_process (bsu_t *ctx, pb_beacon_t *beacon, bsu_beacon_read_schedules ( beacon, &ctx->sta_avln->bs.schedules, &discover, &ctx->sta_avln->bs.hm); - if (ctx->sta_avln->bs.schedules.bpsto.present) - bpsto = ctx->sta_avln->bs.schedules.bpsto.bpsto; /* NTB synchronisation. */ bsu_ntb_clk_sync (&ctx->sta_avln->sync, ctx->phy, params->bts, params->preamble_sysdate, -- cgit v1.2.3