mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 21:29:49 +07:00
Staging: comedi: ni_daq_dio24: 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
2b2dae3da3
commit
ac7e62914c
@ -55,11 +55,7 @@ static int dio24_auto_attach(struct comedi_device *dev,
|
||||
|
||||
/* 8255 dio */
|
||||
s = &dev->subdevices[0];
|
||||
ret = subdev_8255_init(dev, s, NULL, 0x00);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
return subdev_8255_init(dev, s, NULL, 0x00);
|
||||
}
|
||||
|
||||
static struct comedi_driver driver_dio24 = {
|
||||
|
Loading…
Reference in New Issue
Block a user