From 75eb096a5aca54010bac739970ca88f49819bc37 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Sun, 30 Jan 2011 18:32:53 +0000 Subject: xpd_pri: Reduce indentation Signed-off-by: Oron Peled Acked-by: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9717 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/xpp/card_pri.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'drivers/dahdi/xpp/card_pri.c') diff --git a/drivers/dahdi/xpp/card_pri.c b/drivers/dahdi/xpp/card_pri.c index e2833f7..3ada1fd 100644 --- a/drivers/dahdi/xpp/card_pri.c +++ b/drivers/dahdi/xpp/card_pri.c @@ -1140,16 +1140,16 @@ static int pri_chanconfig(struct dahdi_chan *chan, int sigtype) * and prevent DChan definitions with CAS. */ if(is_sigtype_dchan(sigtype)) { - if(VALID_DCHAN(priv) && DCHAN(priv) != chan->channo) { + if (VALID_DCHAN(priv) && DCHAN(priv) != chan->channo) { ERR("channel %d (%s) marked DChan but also channel %d.\n", chan->channo, chan->name, DCHAN(priv)); return -EINVAL; - } else { - XPD_DBG(GENERAL, xpd, "channel %d (%s) marked as DChan\n", chan->channo, chan->name); - SET_DCHAN(priv, chan->channo); - /* In T1, we don't know before-hand */ - if(priv->pri_protocol != PRI_PROTO_E1 && priv->is_cas != 0) - set_mode_cas(xpd, 0); + } + XPD_DBG(GENERAL, xpd, "channel %d (%s) marked as DChan\n", chan->channo, chan->name); + SET_DCHAN(priv, chan->channo); + /* In T1, we don't know before-hand */ + if(priv->pri_protocol != PRI_PROTO_E1 && priv->is_cas != 0) { + set_mode_cas(xpd, 0); } } else { if(chan->channo == 1) { -- cgit v1.2.3