staging: comedi: propogate error code from comedi_alloc_subdevices
[deliverable/linux.git] / drivers / staging / comedi / drivers / ni_6527.c
index 89fee6fdcf6123f79db35d2100aad77ba5996485..b60ab4848b64279991c2568db4a80ddf7a5a7772 100644 (file)
@@ -398,7 +398,7 @@ static int ni6527_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                readb(devpriv->mite->daq_io_addr + ID_Register));
 
        ret = comedi_alloc_subdevices(dev, 3);
-       if (ret < 0)
+       if (ret)
                return ret;
 
        s = dev->subdevices + 0;
This page took 0.029498 seconds and 5 git commands to generate.