From cb343f81856d3295f8e6e03bd2d94af861bfcb3d Mon Sep 17 00:00:00 2001 From: Alec Davis Date: Thu, 29 Jul 2010 22:45:36 +0000 Subject: reverting: add curly braces to _write_8bits Against Kernel Coding Guidelines git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9060 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctdm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'drivers/dahdi/wctdm.c') diff --git a/drivers/dahdi/wctdm.c b/drivers/dahdi/wctdm.c index 6b86c18..5f3fc92 100644 --- a/drivers/dahdi/wctdm.c +++ b/drivers/dahdi/wctdm.c @@ -468,11 +468,10 @@ static inline void __write_8bits(struct wctdm *wc, unsigned char bits) outb(wc->ios, wc->ioaddr + WC_AUXD); for (x=0;x<8;x++) { /* Send out each bit, MSB first, drop SCLK as we do so */ - if (bits & 0x80) { + if (bits & 0x80) wc->ios |= BIT_SDI; - } else { + else wc->ios &= ~BIT_SDI; - } wc->ios &= ~BIT_SCLK; outb(wc->ios, wc->ioaddr + WC_AUXD); -- cgit v1.2.3