staging: unisys: remove unnecessary goto
authorBenjamin Romer <benjamin.romer@unisys.com>
Mon, 8 Feb 2016 15:41:53 +0000 (10:41 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 03:37:15 +0000 (19:37 -0800)
parser_param_start() had a goto Away, which went to nothing but
a return statement. Remove the goto, the CamelCased label, and
just return directly.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchipset.c

index 6ad03a5..a79aa2d 100644 (file)
@@ -461,7 +461,8 @@ parser_param_start(struct parser_context *ctx,
        struct spar_controlvm_parameters_header *phdr = NULL;
 
        if (!ctx)
-               goto Away;
+               return;
+
        phdr = (struct spar_controlvm_parameters_header *)(ctx->data);
        switch (which_string) {
        case PARSERSTRING_INITIATOR:
@@ -483,9 +484,6 @@ parser_param_start(struct parser_context *ctx,
        default:
                break;
        }
-
-Away:
-       return;
 }
 
 static void parser_done(struct parser_context *ctx)