summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Romer <benjamin.romer@unisys.com>2016-02-08 10:41:53 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-11 19:37:15 -0800
commitb4d4dfbcbb737b91bbf07c92891b2496a651be7e (patch)
tree98f42700e8b17b304878c32d2dff0dbba622b391
parent05f1b17ec7aad4381e5a2ba3e99dc9925b4eebcb (diff)
downloadop-kernel-dev-b4d4dfbcbb737b91bbf07c92891b2496a651be7e.zip
op-kernel-dev-b4d4dfbcbb737b91bbf07c92891b2496a651be7e.tar.gz
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 <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/unisys/visorbus/visorchipset.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c
index 6ad03a5..a79aa2d 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)
OpenPOWER on IntegriCloud