Commit a96b98f2 authored by Ravishankar karkala Mallikarjunayya's avatar Ravishankar karkala Mallikarjunayya Committed by Greg Kroah-Hartman

Staging: comedi: fix brace coding style issue in ni_at_a2150.c

This is a patch to the ni_at_a2150.c file that fixes up a brace
warning found by the checkpatch.pl tool.
Signed-off-by: default avatarRavishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 351a1d35
...@@ -731,9 +731,8 @@ static int a2150_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -731,9 +731,8 @@ static int a2150_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
outw(trigger_bits, dev->iobase + TRIGGER_REG); outw(trigger_bits, dev->iobase + TRIGGER_REG);
/* start acquisition for soft trigger */ /* start acquisition for soft trigger */
if (cmd->start_src == TRIG_NOW) { if (cmd->start_src == TRIG_NOW)
outw(0, dev->iobase + FIFO_START_REG); outw(0, dev->iobase + FIFO_START_REG);
}
#ifdef A2150_DEBUG #ifdef A2150_DEBUG
ni_dump_regs(dev); ni_dump_regs(dev);
#endif #endif
...@@ -860,11 +859,10 @@ static int a2150_get_timing(struct comedi_device *dev, unsigned int *period, ...@@ -860,11 +859,10 @@ static int a2150_get_timing(struct comedi_device *dev, unsigned int *period,
case TRIG_ROUND_NEAREST: case TRIG_ROUND_NEAREST:
default: default:
/* if least upper bound is better approximation */ /* if least upper bound is better approximation */
if (lub - *period < *period - glb) { if (lub - *period < *period - glb)
*period = lub; *period = lub;
} else { else
*period = glb; *period = glb;
}
break; break;
case TRIG_ROUND_UP: case TRIG_ROUND_UP:
*period = lub; *period = lub;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment