mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
Staging: comedi: adv_pci1724: Remove redundant return statements
Replace unnecessary conditional checks for variable 'ret' and replace by single return statement. Signed-off-by: Abhishek Sharma <[email protected]> Reviewed-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
51bb618bff
commit
e1f9ae3bca
1 file changed
+1
-5
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user