summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wctdm.c
diff options
context:
space:
mode:
authorAlec L Davis <sivad.a@paradise.net.nz>2010-07-29 22:30:35 +0000
committerAlec L Davis <sivad.a@paradise.net.nz>2010-07-29 22:30:35 +0000
commit52b7c0e20fccec0ed3b1373936a39c4b6ded7064 (patch)
treec11f35a40614ed87c22c25e088a0803917c81e38 /drivers/dahdi/wctdm.c
parent62c27f1d782bcb55d148b45fcb0601a71782fc69 (diff)
add curly braces to _write_8bits
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9059 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm.c')
-rw-r--r--drivers/dahdi/wctdm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dahdi/wctdm.c b/drivers/dahdi/wctdm.c
index 5f3fc92..6b86c18 100644
--- a/drivers/dahdi/wctdm.c
+++ b/drivers/dahdi/wctdm.c
@@ -468,10 +468,11 @@ 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);