mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] trivial: sound/core/seq/seq_memory.c: Fix closing brace followed by if
@ 2014-06-20 19:50 Rasmus Villemoes
  2014-06-23 15:44 ` [alsa-devel] " Takashi Iwai
  2014-06-23 15:56 ` [PATCH v2] " Rasmus Villemoes
  0 siblings, 2 replies; 4+ messages in thread
From: Rasmus Villemoes @ 2014-06-20 19:50 UTC (permalink / raw)
  To: Jaroslav Kysela, Jiri Kosina; +Cc: alsa-devel, linux-kernel, Rasmus Villemoes

Add a newline, and remove a space while at it.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
---
 sound/core/seq/seq_memory.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sound/core/seq/seq_memory.c b/sound/core/seq/seq_memory.c
index 1e206de..4854c21 100644
--- a/sound/core/seq/seq_memory.c
+++ b/sound/core/seq/seq_memory.c
@@ -101,7 +101,8 @@ int snd_seq_dump_var_event(const struct snd_seq_event *event,
 			len -= size;
 		}
 		return 0;
-	} if (! (event->data.ext.len & SNDRV_SEQ_EXT_CHAINED)) {
+	}
+	if (!(event->data.ext.len & SNDRV_SEQ_EXT_CHAINED)) {
 		return func(private_data, event->data.ext.ptr, len);
 	}
 
-- 
1.9.2


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

* Re: [alsa-devel] [PATCH] trivial: sound/core/seq/seq_memory.c: Fix closing brace followed by if
  2014-06-20 19:50 [PATCH] trivial: sound/core/seq/seq_memory.c: Fix closing brace followed by if Rasmus Villemoes
@ 2014-06-23 15:44 ` Takashi Iwai
  2014-06-23 15:56 ` [PATCH v2] " Rasmus Villemoes
  1 sibling, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2014-06-23 15:44 UTC (permalink / raw)
  To: Rasmus Villemoes; +Cc: Jaroslav Kysela, Jiri Kosina, alsa-devel, linux-kernel

At Fri, 20 Jun 2014 21:50:03 +0200,
Rasmus Villemoes wrote:
> 
> Add a newline, and remove a space while at it.

This would give still a checkpatch warning.
Could you fix and resubmit?


thanks,

Takashi

> 
> Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
> ---
>  sound/core/seq/seq_memory.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/sound/core/seq/seq_memory.c b/sound/core/seq/seq_memory.c
> index 1e206de..4854c21 100644
> --- a/sound/core/seq/seq_memory.c
> +++ b/sound/core/seq/seq_memory.c
> @@ -101,7 +101,8 @@ int snd_seq_dump_var_event(const struct snd_seq_event *event,
>  			len -= size;
>  		}
>  		return 0;
> -	} if (! (event->data.ext.len & SNDRV_SEQ_EXT_CHAINED)) {
> +	}
> +	if (!(event->data.ext.len & SNDRV_SEQ_EXT_CHAINED)) {
>  		return func(private_data, event->data.ext.ptr, len);
>  	}
>  
> -- 
> 1.9.2
> 
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

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

* [PATCH v2] trivial: sound/core/seq/seq_memory.c: Fix closing brace followed by if
  2014-06-20 19:50 [PATCH] trivial: sound/core/seq/seq_memory.c: Fix closing brace followed by if Rasmus Villemoes
  2014-06-23 15:44 ` [alsa-devel] " Takashi Iwai
@ 2014-06-23 15:56 ` Rasmus Villemoes
  2014-06-23 16:00   ` Takashi Iwai
  1 sibling, 1 reply; 4+ messages in thread
From: Rasmus Villemoes @ 2014-06-23 15:56 UTC (permalink / raw)
  To: Takashi Iwai, Jaroslav Kysela
  Cc: Jiri Kosina, alsa-devel, linux-kernel, Rasmus Villemoes

Add a newline and, while at it, remove a space and redundant braces.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
---
 sound/core/seq/seq_memory.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/core/seq/seq_memory.c b/sound/core/seq/seq_memory.c
index 1e206de..ba8e4a6 100644
--- a/sound/core/seq/seq_memory.c
+++ b/sound/core/seq/seq_memory.c
@@ -101,9 +101,9 @@ int snd_seq_dump_var_event(const struct snd_seq_event *event,
 			len -= size;
 		}
 		return 0;
-	} if (! (event->data.ext.len & SNDRV_SEQ_EXT_CHAINED)) {
-		return func(private_data, event->data.ext.ptr, len);
 	}
+	if (!(event->data.ext.len & SNDRV_SEQ_EXT_CHAINED))
+		return func(private_data, event->data.ext.ptr, len);
 
 	cell = (struct snd_seq_event_cell *)event->data.ext.ptr;
 	for (; len > 0 && cell; cell = cell->next) {
-- 
1.9.2


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

* Re: [PATCH v2] trivial: sound/core/seq/seq_memory.c: Fix closing brace followed by if
  2014-06-23 15:56 ` [PATCH v2] " Rasmus Villemoes
@ 2014-06-23 16:00   ` Takashi Iwai
  0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2014-06-23 16:00 UTC (permalink / raw)
  To: Rasmus Villemoes; +Cc: Jaroslav Kysela, Jiri Kosina, alsa-devel, linux-kernel

At Mon, 23 Jun 2014 17:56:09 +0200,
Rasmus Villemoes wrote:
> 
> Add a newline and, while at it, remove a space and redundant braces.
> 
> Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>

Thanks, applied now.

I usually don't take patches that only do coding style fixes unless
any further real fixes follow, but this case looks like an exception:
the placement of if is actually wrong so it's worth to correct
(although the code could be "else if" there).


Takashi

> ---
>  sound/core/seq/seq_memory.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/sound/core/seq/seq_memory.c b/sound/core/seq/seq_memory.c
> index 1e206de..ba8e4a6 100644
> --- a/sound/core/seq/seq_memory.c
> +++ b/sound/core/seq/seq_memory.c
> @@ -101,9 +101,9 @@ int snd_seq_dump_var_event(const struct snd_seq_event *event,
>  			len -= size;
>  		}
>  		return 0;
> -	} if (! (event->data.ext.len & SNDRV_SEQ_EXT_CHAINED)) {
> -		return func(private_data, event->data.ext.ptr, len);
>  	}
> +	if (!(event->data.ext.len & SNDRV_SEQ_EXT_CHAINED))
> +		return func(private_data, event->data.ext.ptr, len);
>  
>  	cell = (struct snd_seq_event_cell *)event->data.ext.ptr;
>  	for (; len > 0 && cell; cell = cell->next) {
> -- 
> 1.9.2
> 

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

end of thread, other threads:[~2014-06-23 16:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-20 19:50 [PATCH] trivial: sound/core/seq/seq_memory.c: Fix closing brace followed by if Rasmus Villemoes
2014-06-23 15:44 ` [alsa-devel] " Takashi Iwai
2014-06-23 15:56 ` [PATCH v2] " Rasmus Villemoes
2014-06-23 16:00   ` Takashi Iwai

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®