summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-07-08 19:39:14 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-10-23 22:05:49 +0330
commitfce2e66fbb0098997812bbd76d89737ccbb257eb (patch)
tree72cacddc94d384da7b148b77c9490bac4a418840
parentdd5c09faf65e11a46326407b56e3bf0f9b380e3f (diff)
host/trxcon/scheduler: fix channel deactivation
-rw-r--r--src/host/trxcon/sched_trx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/trxcon/sched_trx.c b/src/host/trxcon/sched_trx.c
index 5cf8779..5499a24 100644
--- a/src/host/trxcon/sched_trx.c
+++ b/src/host/trxcon/sched_trx.c
@@ -312,9 +312,9 @@ int sched_trx_deactivate_lchan(struct trx_ts *ts, enum trx_lchan_type chan)
if (lchan == NULL)
return -EINVAL;
- if (lchan->active) {
+ if (!lchan->active) {
LOGP(DSCH, LOGL_ERROR, "Logical channel %s already deactivated "
- "on ts=%d", trx_lchan_desc[chan].name, ts->index);
+ "on ts=%d\n", trx_lchan_desc[chan].name, ts->index);
return -EINVAL;
}