staging: comedi: propogate error code from comedi_alloc_subdevices
[deliverable/linux.git] / drivers / staging / comedi / drivers / addi-data / addi_common.c
index 46c590b1ad96036e6bd32e6984e2b818ca6ef5fc..a5aa673335efdf775122816831fcf887a62bed66 100644 (file)
@@ -1688,7 +1688,7 @@ static int i_ADDI_Attach(struct comedi_device *dev, struct comedi_devconfig *it)
        } else {
                n_subdevices = 7;
                ret = comedi_alloc_subdevices(dev, n_subdevices);
-               if (ret < 0)
+               if (ret)
                        return ret;
 
                /*  Allocate and Initialise AI Subdevice Structures */
This page took 0.024565 seconds and 5 git commands to generate.