gsm_data: return early if MS Power class remains the same
The following message makes no sense: DRLL DEBUG gsm_data.c:844 MS Power class update: 4 -> 4 because nothing really changed, MS Power class remains 4. Neither it makes sense to call lchan_update_ms_power_ctrl_level(). Change-Id: I519d2d1575cbb5352cc381a60513db8e0e2cb0a0
This commit is contained in:
parent
259e797a8a
commit
d2e0654ee4
|
@ -841,6 +841,11 @@ bool ts_is_usable(const struct gsm_bts_trx_ts *ts)
|
|||
void conn_update_ms_power_class(struct gsm_subscriber_connection *conn, uint8_t power_class)
|
||||
{
|
||||
struct gsm_bts *bts = conn_get_bts(conn);
|
||||
|
||||
/* MS Power class remains the same => do nothing */
|
||||
if (power_class == conn->ms_power_class)
|
||||
return;
|
||||
|
||||
LOGP(DRLL, LOGL_DEBUG, "MS Power class update: %" PRIu8 " -> %" PRIu8 "\n",
|
||||
conn->ms_power_class, power_class);
|
||||
|
||||
|
|
Loading…
Reference in New Issue