mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] dgnc: Cleanup of unnecessary braces
@ 2015-04-25  4:48 Robert Callicotte
  2015-04-25  4:56 ` Joe Perches
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Callicotte @ 2015-04-25  4:48 UTC (permalink / raw)
  To: greg; +Cc: lidza.louina, linux-kernel

Removed curly braces and trailing whitespace from else clause.

Signed-off-by: Robert Callicotte <rcallicotte@gmail.com>
---
 drivers/staging/dgnc/dgnc_tty.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index ce4187f..2418150 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -898,9 +898,8 @@ void dgnc_check_queue_flow_control(struct channel_t *ch)
 			ch->ch_bd->bd_ops->send_start_character(ch);
 		}
 		/* No FLOW */
-		else {
+		else
 			/* Nothing needed. */
-		}
 	}
 }
 
-- 
2.2.2


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

* Re: [PATCH] dgnc: Cleanup of unnecessary braces
  2015-04-25  4:48 [PATCH] dgnc: Cleanup of unnecessary braces Robert Callicotte
@ 2015-04-25  4:56 ` Joe Perches
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Perches @ 2015-04-25  4:56 UTC (permalink / raw)
  To: Robert Callicotte; +Cc: greg, lidza.louina, linux-kernel

On Fri, 2015-04-24 at 23:48 -0500, Robert Callicotte wrote:
> Removed curly braces and trailing whitespace from else clause.

Do please compile the files modified by your patches
_before_ sending them.

> Signed-off-by: Robert Callicotte <rcallicotte@gmail.com>
> ---
>  drivers/staging/dgnc/dgnc_tty.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
> index ce4187f..2418150 100644
> --- a/drivers/staging/dgnc/dgnc_tty.c
> +++ b/drivers/staging/dgnc/dgnc_tty.c
> @@ -898,9 +898,8 @@ void dgnc_check_queue_flow_control(struct channel_t *ch)
>  			ch->ch_bd->bd_ops->send_start_character(ch);
>  		}
>  		/* No FLOW */
> -		else {
> +		else
>  			/* Nothing needed. */
> -		}
>  	}
>  }
>  




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

end of thread, other threads:[~2015-04-25  5:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-25  4:48 [PATCH] dgnc: Cleanup of unnecessary braces Robert Callicotte
2015-04-25  4:56 ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®