All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: unisys: remove unnecessary goto
@ 2015-12-07 15:58 Benjamin Romer
  2015-12-07 15:58 ` [PATCH] staging: unisys: fix parenthesis in toolaction_show() Benjamin Romer
  2016-02-07 22:06 ` [PATCH] staging: unisys: remove unnecessary goto Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Benjamin Romer @ 2015-12-07 15:58 UTC (permalink / raw)
  To: gregkh; +Cc: sparmaintainer, driverdev-devel, Benjamin Romer

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>
---
 drivers/staging/unisys/visorbus/visorchipset.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c
index 5535073..7208618 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)
-- 
2.5.0

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] staging: unisys: fix parenthesis in toolaction_show()
  2015-12-07 15:58 [PATCH] staging: unisys: remove unnecessary goto Benjamin Romer
@ 2015-12-07 15:58 ` Benjamin Romer
  2016-02-07 22:06 ` [PATCH] staging: unisys: remove unnecessary goto Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Romer @ 2015-12-07 15:58 UTC (permalink / raw)
  To: gregkh; +Cc: sparmaintainer, driverdev-devel, Benjamin Romer

Fix the only fixable parenthesis alignment issue in
visorchipset.c. The rest are unworkable because of the length
of the symbol names used.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
---
 drivers/staging/unisys/visorbus/visorchipset.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c
index 7208618..775f53f 100644
--- a/drivers/staging/unisys/visorbus/visorchipset.c
+++ b/drivers/staging/unisys/visorbus/visorchipset.c
@@ -534,8 +534,8 @@ static ssize_t toolaction_show(struct device *dev,
 	u8 tool_action;
 
 	visorchannel_read(controlvm_channel,
-		offsetof(struct spar_controlvm_channel_protocol,
-			 tool_action), &tool_action, sizeof(u8));
+			  offsetof(struct spar_controlvm_channel_protocol,
+				   tool_action), &tool_action, sizeof(u8));
 	return scnprintf(buf, PAGE_SIZE, "%u\n", tool_action);
 }
 
-- 
2.5.0

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] staging: unisys: remove unnecessary goto
  2015-12-07 15:58 [PATCH] staging: unisys: remove unnecessary goto Benjamin Romer
  2015-12-07 15:58 ` [PATCH] staging: unisys: fix parenthesis in toolaction_show() Benjamin Romer
@ 2016-02-07 22:06 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2016-02-07 22:06 UTC (permalink / raw)
  To: Benjamin Romer; +Cc: sparmaintainer, driverdev-devel

On Mon, Dec 07, 2015 at 10:58:36AM -0500, Benjamin Romer wrote:
> 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>
> ---
>  drivers/staging/unisys/visorbus/visorchipset.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)

Didn't apply to my tree :(

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-07 22:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-07 15:58 [PATCH] staging: unisys: remove unnecessary goto Benjamin Romer
2015-12-07 15:58 ` [PATCH] staging: unisys: fix parenthesis in toolaction_show() Benjamin Romer
2016-02-07 22:06 ` [PATCH] staging: unisys: remove unnecessary goto Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.