staging: comedi: ni_660x: checkpatch.pl cleanup (break not useful)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 16 Jul 2014 17:43:30 +0000 (10:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:34:22 +0000 (13:34 -0700)
Fix the checkpatch.pl warnings:

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_660x.c

index 27d435f2565b6e0583c89c1a70f90ef7a9ee5074..d09b8667cd428bd0c4853dc823c6b273ba3beff2 100644 (file)
@@ -619,10 +619,8 @@ static inline unsigned ni_660x_read_register(struct comedi_device *dev,
        switch (registerData[reg].size) {
        case DATA_2B:
                return readw(read_address);
-               break;
        case DATA_4B:
                return readl(read_address);
-               break;
        default:
                BUG();
                break;
This page took 0.025797 seconds and 5 git commands to generate.