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: 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
ac7e62914c
commit
71b9f42eac
1 changed files with 1 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue