staging: comedi: propogate error code from comedi_alloc_subdevices
[deliverable/linux.git] / drivers / staging / comedi / drivers / dt2814.c
index 876d5cbdbe4af60863b4384c10c515caa785c540..2e39ebe36fb5863ed4ca831a9435a66d5e458ebd 100644 (file)
@@ -339,7 +339,7 @@ static int dt2814_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        }
 
        ret = comedi_alloc_subdevices(dev, 1);
-       if (ret < 0)
+       if (ret)
                return ret;
 
        ret = alloc_private(dev, sizeof(struct dt2814_private));
This page took 0.028233 seconds and 5 git commands to generate.