summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNélio Laranjeiro2010-09-09 09:35:36 +0200
committerNélio Laranjeiro2010-09-09 15:03:46 +0200
commit06b1586111b5483ba3ed9820f4f144ccdce77768 (patch)
tree065a57b8aa028a7d8299540beb7c0200f5bd06f3
parent5edd878c91b95e9dfeeb4c48200f78b22bcb712f (diff)
cesar/bsu: remove useless code
-rw-r--r--cesar/bsu/beacon/src/beacon.c1
-rw-r--r--cesar/bsu/src/bsu.c3
2 files changed, 1 insertions, 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,