mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 1/6] Staging: comedi: dmm32at: Simplify a trivial if-return sequence
@ 2015-06-22  6:10 Abdul, Hussain (H.)
  2015-06-22  6:10 ` [PATCH v2 2/6] Staging: comedi: fl512: " Abdul, Hussain (H.)
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Abdul, Hussain (H.) @ 2015-06-22  6:10 UTC (permalink / raw)
  To: gregkh; +Cc: abbotti, hsweeten, devel, linux-kernel

From: Abdul Hussain <habdul@visteon.com>

This patch simplify a trivial if-return sequence. Possibly combine with
a preceding function call.

Signed-off-by: Abdul Hussain <habdul@visteon.com>
---
 drivers/staging/comedi/drivers/dmm32at.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/staging/comedi/drivers/dmm32at.c b/drivers/staging/comedi/drivers/dmm32at.c
index bb2883c..958c0d4 100644
--- a/drivers/staging/comedi/drivers/dmm32at.c
+++ b/drivers/staging/comedi/drivers/dmm32at.c
@@ -607,11 +607,7 @@ static int dmm32at_attach(struct comedi_device *dev,
 
 	/* Digital I/O subdevice */
 	s = &dev->subdevices[2];
-	ret = subdev_8255_init(dev, s, dmm32at_8255_io, DMM32AT_8255_IOBASE);
-	if (ret)
-		return ret;
-
-	return 0;
+	return subdev_8255_init(dev, s, dmm32at_8255_io, DMM32AT_8255_IOBASE);
 }
 
 static struct comedi_driver dmm32at_driver = {
-- 
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-06-22 20:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-22  6:10 [PATCH v2 1/6] Staging: comedi: dmm32at: Simplify a trivial if-return sequence Abdul, Hussain (H.)
2015-06-22  6:10 ` [PATCH v2 2/6] Staging: comedi: fl512: " Abdul, Hussain (H.)
2015-06-22  6:11 ` [PATCH v2 3/6] Staging: combine: daqboard2000: " Abdul, Hussain (H.)
2015-06-22 20:39   ` Markus Böhme
2015-06-22  6:11 ` [PATCH v2 4/6] Staging: comedi: dac02: " Abdul, Hussain (H.)
2015-06-22  6:11 ` [PATCH v2 5/6] Staging: comedi: ni_daq_dio24: " Abdul, Hussain (H.)
2015-06-22  6:11 ` [PATCH v2 6/6] Staging: comedi: s626: " Abdul, Hussain (H.)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®