From: Benjamin Romer Date: Mon, 8 Feb 2016 15:41:53 +0000 (-0500) Subject: staging: unisys: remove unnecessary goto X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b4d4dfbcbb737b91bbf07c92891b2496a651be7e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: unisys: remove unnecessary goto 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c index 6ad03a580a12..a79aa2ddeef5 100644 --- a/drivers/staging/unisys/visorbus/visorchipset.c +++ b/drivers/staging/unisys/visorbus/visorchipset.c @@ -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)