]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: comedi: ni_tio_internal.c: checkpatch.pl cleanup (break is not useful)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 16 Jul 2014 17:43:42 +0000 (10:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:34:24 +0000 (13:34 -0700)
Fix the checkpatch.pl warning:

WARNING: break is not useful after a goto or return

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/ni_tio_internal.h

index 15b81b8fc5c49be067e8d95cd603d842b38bb6d8..3c53958bbbbf9ee8ce01c7c0073c73515dc51ec1 100644 (file)
@@ -334,11 +334,9 @@ static inline int ni_tio_counting_mode_registers_present(const struct
        switch (counter_dev->variant) {
        case ni_gpct_variant_e_series:
                return 0;
-               break;
        case ni_gpct_variant_m_series:
        case ni_gpct_variant_660x:
                return 1;
-               break;
        default:
                BUG();
                break;