Skip to contentSkip to conversation

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

PATCH New Paul Elms 1 participant 1 message Feb 4, 2010 Staging

lore
Share & tools
lore

Paul Elms

author
#0 lore raw

PATCH 1/1 Staging: comedi: fix brace coding style in comedi_fops.c

Quoted 1 line

From 38f32cfc823e40b4b64a2977bc79c00990b29837 Mon Sep 17 00:00:00 2001

From: Paul Elms <[email protected]>
Date: Tue, 2 Feb 2010 17:34:50 +0000
Subject: [PATCH] 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

---
 drivers/staging/comedi/comedi_fops.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
drivers/staging/comedi/comedi_fops.c +2 -4
index 8117748..79653e8 100644
@@ -2004,12 +2004,10 @@ void comedi_event(struct comedi_device *dev, struct comedi_subdevice *s)
 	if (async->cb_mask & s->async->events) {
 		if (comedi_get_subdevice_runflags(s) & SRF_USER) {
 			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);
-			}
-			if (s->subdev_flags & SDF_CMD_WRITE) {
+			if (s->subdev_flags & SDF_CMD_WRITE)
 				kill_fasync(&dev->async_queue, SIGIO, POLL_OUT);
-			}
 		} else {
 			if (async->cb_func)
 				async->cb_func(s->async->events, async->cb_arg);
Signature · 1 line
1.6.3.3