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/xpp_dahdi.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/xpp_dahdi.c')
-rw-r--r-- | drivers/dahdi/xpp/xpp_dahdi.c | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/drivers/dahdi/xpp/xpp_dahdi.c b/drivers/dahdi/xpp/xpp_dahdi.c index ae3ea45..7a0ab90 100644 --- a/drivers/dahdi/xpp/xpp_dahdi.c +++ b/drivers/dahdi/xpp/xpp_dahdi.c @@ -368,21 +368,17 @@ static int xpd_read_proc(char *page, char **start, off_t off, int count, memcpy(rchunk, rp, DAHDI_CHUNKSIZE); memcpy(wchunk, wp, DAHDI_CHUNKSIZE); len += sprintf(page + len, "\n port %2d> | ", i); - for (j = 0; j < DAHDI_CHUNKSIZE; j++) { + for (j = 0; j < DAHDI_CHUNKSIZE; j++) len += sprintf(page + len, "%02X ", rchunk[j]); - } len += sprintf(page + len, " | "); - for (j = 0; j < DAHDI_CHUNKSIZE; j++) { + for (j = 0; j < DAHDI_CHUNKSIZE; j++) len += sprintf(page + len, "%02X ", wchunk[j]); - } - len += - sprintf(page + len, " | %c", - (IS_SET(PHONEDEV(xpd).wanted_pcm_mask, i)) ? - '+' : ' '); - len += - sprintf(page + len, " %c", - (IS_SET(PHONEDEV(xpd).mute_dtmf, i)) ? '-' : - ' '); + len += sprintf(page + len, " | %c", + (IS_SET(PHONEDEV(xpd).wanted_pcm_mask, i)) + ? '+' : ' '); + len += sprintf(page + len, " %c", + (IS_SET(PHONEDEV(xpd).mute_dtmf, i)) + ? '-' : ' '); } } #endif @@ -487,9 +483,8 @@ static void phonedev_cleanup(xpd_t *xpd) unsigned int x; for (x = 0; x < phonedev->channels; x++) { - if (phonedev->chans[x]) { + if (phonedev->chans[x]) KZFREE(phonedev->chans[x]); - } if (phonedev->ec[x]) KZFREE(phonedev->ec[x]); } |