Staging: comedi: dmm32at: Simplify a trivial if-return sequence
This patch simplify a trivial if-return sequence. Possibly combine with a preceding function call. Signed-off-by: Abdul Hussain <habdul@visteon.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
55ff2c6972
commit
fa4c586e17
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue