提交 e1f9ae3b 编写于 作者: A Abhishek Sharma 提交者: Greg Kroah-Hartman

Staging: comedi: adv_pci1724: Remove redundant return statements

Replace unnecessary conditional checks for variable 'ret' and replace
by single return statement.
Signed-off-by: NAbhishek Sharma <asharm14@visteon.com>
Reviewed-by: NIan Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 51bb618b
......@@ -180,11 +180,7 @@ static int adv_pci1724_auto_attach(struct comedi_device *dev,
s->insn_write = adv_pci1724_insn_write;
s->private = (void *)PCI1724_DAC_CTRL_MODE_GAIN;
ret = comedi_alloc_subdev_readback(s);
if (ret)
return ret;
return 0;
return comedi_alloc_subdev_readback(s);
}
static struct comedi_driver adv_pci1724_driver = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册