staging: comedi: propogate error code from comedi_alloc_subdevices
[deliverable/linux.git] / drivers / staging / comedi / drivers / amplc_pc263.c
index f1d68dff1ab05d7efa7bebe62121d4e08dfc80e2..4f15bfd80719e2a6a2249a3f90c12732232ee07b 100644 (file)
@@ -228,7 +228,7 @@ static int pc263_common_attach(struct comedi_device *dev, unsigned long iobase)
        dev->iobase = iobase;
 
        ret = comedi_alloc_subdevices(dev, 1);
-       if (ret < 0)
+       if (ret)
                return ret;
 
        s = dev->subdevices + 0;
This page took 0.027841 seconds and 5 git commands to generate.