Commit f4098b4f authored by Paul Elms's avatar Paul Elms Committed by Greg Kroah-Hartman

Staging: comedi: fix brace coding style in comedi_fops.c

This patch to the comedi_fops.c file fixes a brace warning found by the checkpatch.pl tool
Signed-off-by: default avatarPaul Elms <paul@uprocera.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 412bd046
...@@ -2004,12 +2004,10 @@ void comedi_event(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -2004,12 +2004,10 @@ void comedi_event(struct comedi_device *dev, struct comedi_subdevice *s)
if (async->cb_mask & s->async->events) { if (async->cb_mask & s->async->events) {
if (comedi_get_subdevice_runflags(s) & SRF_USER) { if (comedi_get_subdevice_runflags(s) & SRF_USER) {
wake_up_interruptible(&async->wait_head); wake_up_interruptible(&async->wait_head);
if (s->subdev_flags & SDF_CMD_READ) { if (s->subdev_flags & SDF_CMD_READ)
kill_fasync(&dev->async_queue, SIGIO, POLL_IN); kill_fasync(&dev->async_queue, SIGIO, POLL_IN);
} if (s->subdev_flags & SDF_CMD_WRITE)
if (s->subdev_flags & SDF_CMD_WRITE) {
kill_fasync(&dev->async_queue, SIGIO, POLL_OUT); kill_fasync(&dev->async_queue, SIGIO, POLL_OUT);
}
} else { } else {
if (async->cb_func) if (async->cb_func)
async->cb_func(s->async->events, async->cb_arg); async->cb_func(s->async->events, async->cb_arg);
......
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