staging: comedi: Fix return flow
Simplify function return flow. Issue found with coccinelle. Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
64289a6506
commit
9aed06693d
1 changed files with 2 additions and 6 deletions
|
@ -713,12 +713,8 @@ static int daqboard2000_auto_attach(struct comedi_device *dev,
|
|||
return result;
|
||||
|
||||
s = &dev->subdevices[2];
|
||||
result = subdev_8255_init(dev, s, daqboard2000_8255_cb,
|
||||
dioP2ExpansionIO8Bit);
|
||||
if (result)
|
||||
return result;
|
||||
|
||||
return 0;
|
||||
return subdev_8255_init(dev, s, daqboard2000_8255_cb,
|
||||
dioP2ExpansionIO8Bit);
|
||||
}
|
||||
|
||||
static void daqboard2000_detach(struct comedi_device *dev)
|
||||
|
|
Loading…
Add table
Reference in a new issue