mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 05:39:42 -04:00
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:
committed by
Greg Kroah-Hartman
parent
ac7e62914c
commit
71b9f42eac
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user