diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-01-12 17:14:15 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-01-12 17:14:15 +0000 |
commit | 2f16d87fe76a8828f515ec40f46c153ceb8bbfb1 (patch) | |
tree | 928c092a177d40c63001364bdc078f0b64da49bf /drivers/dahdi/xpp/card_fxo.c | |
parent | ccaa35624e84640f50de9cdfbf0cef483dada746 (diff) |
xpp: style - remove extra braces
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-By: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10438 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/card_fxo.c')
-rw-r--r-- | drivers/dahdi/xpp/card_fxo.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/dahdi/xpp/card_fxo.c b/drivers/dahdi/xpp/card_fxo.c index 6c76903..9f711c6 100644 --- a/drivers/dahdi/xpp/card_fxo.c +++ b/drivers/dahdi/xpp/card_fxo.c @@ -241,11 +241,10 @@ static int do_led(xpd_t *xpd, lineno_t chan, __u8 which, bool on) if (chan == PORT_BROADCAST) { priv->ledstate[which] = (on) ? ~0 : 0; } else { - if (on) { + if (on) BIT_SET(priv->ledstate[which], chan); - } else { + else BIT_CLR(priv->ledstate[which], chan); - } } value = 0; value |= ((BIT(5) | BIT(6) | BIT(7)) & ~led_register_mask[which]); @@ -289,11 +288,10 @@ static void handle_fxo_leds(xpd_t *xpd) (IS_SET (priv->ledstate[color], i)) ? "ON" : "OFF"); - if (!IS_SET(priv->ledstate[color], i)) { + if (!IS_SET(priv->ledstate[color], i)) do_led(xpd, i, color, 1); - } else { + else do_led(xpd, i, color, 0); - } } } else if (IS_SET(priv->ledcontrol[color], i) && !IS_SET(priv->ledstate[color], i)) { |