[dahdi-commits] alecdavis: linux/trunk r9059 - /linux/trunk/drivers/dahdi/wctdm.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Thu Jul 29 17:30:46 CDT 2010
Author: alecdavis
Date: Thu Jul 29 17:30:35 2010
New Revision: 9059
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9059
Log:
add curly braces to _write_8bits
Modified:
linux/trunk/drivers/dahdi/wctdm.c
Modified: linux/trunk/drivers/dahdi/wctdm.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wctdm.c?view=diff&rev=9059&r1=9058&r2=9059
==============================================================================
--- linux/trunk/drivers/dahdi/wctdm.c (original)
+++ linux/trunk/drivers/dahdi/wctdm.c Thu Jul 29 17:30:35 2010
@@ -468,10 +468,11 @@
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);
More information about the dahdi-commits
mailing list