staging: comedi: propogate error code from comedi_alloc_subdevices
[deliverable/linux.git] / drivers / staging / comedi / drivers / pcl812.c
index 128f5b644878d1623033adc85bb4b4789a80279d..0a4074af8a6029fab8ecb476b0ee09144375fb7e 100644 (file)
@@ -1383,7 +1383,7 @@ no_dma:
                n_subdevices++;
 
        ret = comedi_alloc_subdevices(dev, n_subdevices);
-       if (ret < 0) {
+       if (ret) {
                free_resources(dev);
                return ret;
        }
This page took 0.033574 seconds and 5 git commands to generate.