Staging: comedi: remove assignment in conditionals
[deliverable/linux.git] / drivers / staging / comedi / drivers / adl_pci9111.c
index aed4a47a7988a1c8e5b624e43bee99d05800bc08..6dc9435997ca9946d71a2b1db7d8da49e684d8a8 100644 (file)
@@ -1310,7 +1310,8 @@ static int pci9111_attach(struct comedi_device *dev, struct comedi_devconfig *it
 
        /*  TODO: Add external multiplexer setup (according to option[2]). */
 
-       if ((error = alloc_subdevices(dev, 4)) < 0)
+       error = alloc_subdevices(dev, 4);
+       if (error < 0)
                return error;
 
        subdevice = dev->subdevices + 0;
This page took 0.023554 seconds and 5 git commands to generate.