Commit 9aed0669 authored by Cristina Moraru's avatar Cristina Moraru Committed by Greg Kroah-Hartman

staging: comedi: Fix return flow

Simplify function return flow. Issue found
with coccinelle.
Signed-off-by: default avatarCristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 64289a65
...@@ -713,12 +713,8 @@ static int daqboard2000_auto_attach(struct comedi_device *dev, ...@@ -713,12 +713,8 @@ static int daqboard2000_auto_attach(struct comedi_device *dev,
return result; return result;
s = &dev->subdevices[2]; s = &dev->subdevices[2];
result = subdev_8255_init(dev, s, daqboard2000_8255_cb, return subdev_8255_init(dev, s, daqboard2000_8255_cb,
dioP2ExpansionIO8Bit); dioP2ExpansionIO8Bit);
if (result)
return result;
return 0;
} }
static void daqboard2000_detach(struct comedi_device *dev) static void daqboard2000_detach(struct comedi_device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment