]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: comedi_test: checkpatch.pl cleanup (break is not useful)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 16 Jul 2014 18:02:00 +0000 (11:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jul 2014 20:37:19 +0000 (13:37 -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/comedi_test.c

index 67a09aa6b72116141d6e6c03316e25fbfe815fce..1e2fb91b78fe4f802006b942a4bab43f4226faed 100644 (file)
@@ -146,10 +146,8 @@ static unsigned short fake_waveform(struct comedi_device *dev,
        switch (channel) {
        case SAWTOOTH_CHAN:
                return fake_sawtooth(dev, range, current_time);
-               break;
        case SQUARE_CHAN:
                return fake_squarewave(dev, range, current_time);
-               break;
        default:
                break;
        }