TBF: remove unused variable
The num_T_exp is write-only so it can be safely dropped. Change-Id: I94d83ca8c9b2f0732b53fdf42b17ba93cd7f1c15
This commit is contained in:
parent
1a11d1db09
commit
912131803b
|
@ -162,7 +162,6 @@ gprs_rlcmac_tbf::gprs_rlcmac_tbf(BTS *bts_, gprs_rlcmac_tbf_direction dir) :
|
||||||
poll_ts(0),
|
poll_ts(0),
|
||||||
n3105(0),
|
n3105(0),
|
||||||
T(0),
|
T(0),
|
||||||
num_T_exp(0),
|
|
||||||
fT(0),
|
fT(0),
|
||||||
num_fT_exp(0),
|
num_fT_exp(0),
|
||||||
state(GPRS_RLCMAC_NULL),
|
state(GPRS_RLCMAC_NULL),
|
||||||
|
@ -541,7 +540,6 @@ void tbf_timer_start(struct gprs_rlcmac_tbf *tbf, unsigned int T,
|
||||||
LOGPC(DRLCMAC, (T != tbf->T) ? LOGL_ERROR : LOGL_DEBUG, "\n");
|
LOGPC(DRLCMAC, (T != tbf->T) ? LOGL_ERROR : LOGL_DEBUG, "\n");
|
||||||
|
|
||||||
tbf->T = T;
|
tbf->T = T;
|
||||||
tbf->num_T_exp = 0;
|
|
||||||
|
|
||||||
/* Tunning timers can be safely re-scheduled. */
|
/* Tunning timers can be safely re-scheduled. */
|
||||||
tbf->timer.data = tbf;
|
tbf->timer.data = tbf;
|
||||||
|
@ -1007,8 +1005,6 @@ void gprs_rlcmac_tbf::handle_timeout()
|
||||||
LOGP(DRLCMAC, LOGL_DEBUG, "%s timer %u expired.\n",
|
LOGP(DRLCMAC, LOGL_DEBUG, "%s timer %u expired.\n",
|
||||||
tbf_name(this), T);
|
tbf_name(this), T);
|
||||||
|
|
||||||
num_T_exp++;
|
|
||||||
|
|
||||||
switch (T) {
|
switch (T) {
|
||||||
case 0: /* assignment */
|
case 0: /* assignment */
|
||||||
if ((state_flags & (1 << GPRS_RLCMAC_FLAG_PACCH))) {
|
if ((state_flags & (1 << GPRS_RLCMAC_FLAG_PACCH))) {
|
||||||
|
|
|
@ -246,7 +246,6 @@ struct gprs_rlcmac_tbf {
|
||||||
|
|
||||||
struct osmo_timer_list timer;
|
struct osmo_timer_list timer;
|
||||||
unsigned int T; /* Txxxx number */
|
unsigned int T; /* Txxxx number */
|
||||||
unsigned int num_T_exp; /* number of consecutive T expirations */
|
|
||||||
|
|
||||||
struct osmo_gsm_timer_list gsm_timer;
|
struct osmo_gsm_timer_list gsm_timer;
|
||||||
unsigned int fT; /* fTxxxx number */
|
unsigned int fT; /* fTxxxx number */
|
||||||
|
|
Loading…
Reference in New Issue