These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / staging / comedi / drivers / das16.c
index d7cf4b1..056bca9 100644 (file)
@@ -1032,8 +1032,7 @@ static int das16_attach(struct comedi_device *dev, struct comedi_devconfig *it)
 
        /*  check that clock setting is valid */
        if (it->options[3]) {
-               if (it->options[3] != 0 &&
-                   it->options[3] != 1 && it->options[3] != 10) {
+               if (it->options[3] != 1 && it->options[3] != 10) {
                        dev_err(dev->class_dev,
                                "Invalid option. Master clock must be set to 1 or 10 (MHz)\n");
                        return -EINVAL;