Staging: comedi: remove assignment in conditionals
[deliverable/linux.git] / drivers / staging / comedi / drivers / ni_65xx.c
index 72005a40ad99a511451f995392d9d8bad14c60c3..7cf22c0f566baf5206fccf58599cc723d6775073 100644 (file)
@@ -627,7 +627,8 @@ static int ni_65xx_attach(struct comedi_device *dev, struct comedi_devconfig *it
 
        printk("comedi%d: ni_65xx:", dev->minor);
 
-       if ((ret = alloc_private(dev, sizeof(struct ni_65xx_private))) < 0)
+       ret = alloc_private(dev, sizeof(struct ni_65xx_private));
+       if (ret < 0)
                return ret;
 
        ret = ni_65xx_find_device(dev, it->options[0], it->options[1]);
@@ -647,7 +648,8 @@ static int ni_65xx_attach(struct comedi_device *dev, struct comedi_devconfig *it
        printk(" ID=0x%02x",
                readb(private(dev)->mite->daq_io_addr + ID_Register));
 
-       if ((ret = alloc_subdevices(dev, 4)) < 0)
+       ret = alloc_subdevices(dev, 4);
+       if (ret < 0)
                return ret;
 
        s = dev->subdevices + 0;
This page took 0.023668 seconds and 5 git commands to generate.