trivial: sound/core/seq/seq_memory.c: Fix closing brace followed by if
diff mbox

Message ID 1403293803-17650-1-git-send-email-linux@rasmusvillemoes.dk
State New, archived
Headers show

Commit Message

Rasmus Villemoes June 20, 2014, 7:50 p.m. UTC
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(-)

Comments

Takashi Iwai June 23, 2014, 3:44 p.m. UTC | #1
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
>

Patch
diff mbox

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);
 	}