staging: comedi: propogate error code from comedi_alloc_subdevices
[deliverable/linux.git] / drivers / staging / comedi / drivers / adv_pci1723.c
index c14ad35cb835834a993284a443079e74c8f17eb5..d37c14da5ec60e37fded37bef243e041eeb984c1 100644 (file)
@@ -366,7 +366,7 @@ static int pci1723_attach(struct comedi_device *dev,
                n_subdevices++;
 
        ret = comedi_alloc_subdevices(dev, n_subdevices);
-       if (ret < 0)
+       if (ret)
                return ret;
 
        pci1723_reset(dev);
This page took 0.026644 seconds and 5 git commands to generate.