staging: comedi: propogate error code from comedi_alloc_subdevices
[deliverable/linux.git] / drivers / staging / comedi / drivers / ni_atmio16d.c
index 37ff6fc8615794b7e1d824cd84982263a2c521d6..95bee84b78aec8013ef0aa681fcdff37327362ef 100644 (file)
@@ -710,7 +710,7 @@ static int atmio16d_attach(struct comedi_device *dev,
        dev->board_name = board->name;
 
        ret = comedi_alloc_subdevices(dev, 4);
-       if (ret < 0)
+       if (ret)
                return ret;
 
        ret = alloc_private(dev, sizeof(struct atmio16d_private));
This page took 0.027665 seconds and 5 git commands to generate.