mirror of
https://github.com/torvalds/linux.git
synced 2024-12-31 23:31:29 +00:00
Staging: comedi: dac02: 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
11b22e1465
commit
2b2dae3da3
@ -130,11 +130,7 @@ static int dac02_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
s->range_table = &das02_ao_ranges;
|
||||
s->insn_write = dac02_ao_insn_write;
|
||||
|
||||
ret = comedi_alloc_subdev_readback(s);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
return comedi_alloc_subdev_readback(s);
|
||||
}
|
||||
|
||||
static struct comedi_driver dac02_driver = {
|
||||
|
Loading…
Reference in New Issue
Block a user