]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: ni_tiocmd: remove BUG() which can never occur
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 23 Mar 2016 22:36:59 +0000 (15:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
All the counter_dev->variant options are handled by the switch.
Remove the BUG() which can never occur.

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

index 2d801bf90e529c1f4c7558932852a9c1b5a3bc6e..3c3f5430e5523a67242cbb2e5666ffcca263e543 100644 (file)
@@ -125,9 +125,6 @@ static int ni_tio_input_cmd(struct comedi_subdevice *s)
        case ni_gpct_variant_e_series:
                mite_prep_dma(counter->mite_chan, 16, 32);
                break;
-       default:
-               BUG();
-               break;
        }
        ni_tio_set_bits(counter, NITIO_CMD_REG(cidx), GI_SAVE_TRACE, 0);
        ni_tio_configure_dma(counter, true, true);