staging: comedi: dt3000: remove empty 'else' code
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 26 Oct 2012 00:26:54 +0000 (17:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Oct 2012 16:18:18 +0000 (09:18 -0700)
There are a number of:

} else {
/* not supported */
}

cases in this driver. Remove them.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt3000.c

index dba54844372c715a65048f432b3421001723d9c5..d54b91cba9b88bc72993a868a259c46cd2f46d1b 100644 (file)
@@ -488,9 +488,8 @@ static int dt3k_ai_cmdtest(struct comedi_device *dev,
                        cmd->scan_begin_arg = 100 * 16 * 65535;
                        err++;
                }
-       } else {
-               /* not supported */
        }
+
        if (cmd->convert_src == TRIG_TIMER) {
                if (cmd->convert_arg < this_board->ai_speed) {
                        cmd->convert_arg = this_board->ai_speed;
@@ -500,8 +499,6 @@ static int dt3k_ai_cmdtest(struct comedi_device *dev,
                        cmd->convert_arg = 50 * 16 * 65535;
                        err++;
                }
-       } else {
-               /* not supported */
        }
 
        if (cmd->scan_end_arg != cmd->chanlist_len) {
@@ -532,9 +529,8 @@ static int dt3k_ai_cmdtest(struct comedi_device *dev,
                                 cmd->flags & TRIG_ROUND_MASK);
                if (tmp != cmd->scan_begin_arg)
                        err++;
-       } else {
-               /* not supported */
        }
+
        if (cmd->convert_src == TRIG_TIMER) {
                tmp = cmd->convert_arg;
                dt3k_ns_to_timer(50, &cmd->convert_arg,
@@ -548,8 +544,6 @@ static int dt3k_ai_cmdtest(struct comedi_device *dev,
                            cmd->convert_arg * cmd->scan_end_arg;
                        err++;
                }
-       } else {
-               /* not supported */
        }
 
        if (err)
@@ -585,8 +579,6 @@ static int dt3k_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
                                           cmd->flags & TRIG_ROUND_MASK);
                writew((divider >> 16), devpriv->io_addr + DPR_Params(1));
                writew((divider & 0xffff), devpriv->io_addr + DPR_Params(2));
-       } else {
-               /* not supported */
        }
 
        if (cmd->scan_begin_src == TRIG_TIMER) {
@@ -594,8 +586,6 @@ static int dt3k_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
                                            cmd->flags & TRIG_ROUND_MASK);
                writew((tscandiv >> 16), devpriv->io_addr + DPR_Params(3));
                writew((tscandiv & 0xffff), devpriv->io_addr + DPR_Params(4));
-       } else {
-               /* not supported */
        }
 
        mode = DT3000_AD_RETRIG_INTERNAL | 0 | 0;