Commit 71b9f42e authored by Abdul Hussain's avatar Abdul Hussain Committed by Greg Kroah-Hartman

Staging: comedi: s626: Simplify a trivial if-return sequence

This patch simplify a trivial if-return sequence. Possibly combine with
a preceding function call.
Signed-off-by: default avatarAbdul Hussain <habdul@visteon.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ac7e6291
......@@ -2852,11 +2852,7 @@ static int s626_auto_attach(struct comedi_device *dev,
s->insn_read = s626_enc_insn_read;
s->insn_write = s626_enc_insn_write;
ret = s626_initialize(dev);
if (ret)
return ret;
return 0;
return s626_initialize(dev);
}
static void s626_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