]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: s526: checkpatch.pl cleanup (break not useful)
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 16 Jul 2014 17:43:27 +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 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/s526.c

index 85d2b7a3c125eb90d0e050e7613e3be716b6a840..208567d2cb214c207c560da48152b2b9ade664a9 100644 (file)
@@ -345,7 +345,6 @@ static int s526_gpct_insn_config(struct comedi_device *dev,
 
        default:
                return -EINVAL;
-               break;
        }
 
        return insn->n;