trivial: sound/core/seq/seq_memory.c: Fix closing brace followed by if
PATCH 1/1 trivial: sound/core/seq/seq_memory.c: Fix closing brace followed by if
Add a newline, and remove a space while at it.
--- sound/core/seq/seq_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/core/seq/seq_memory.c +2 -1
@@ -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); }
Signature · 1 line
1.9.2
At Fri, 20 Jun 2014 21:50:03 +0200,
Quoted 2 lines · Rasmus Villemoes
Add a newline, and remove a space while at it.
This would give still a checkpatch warning.
Could you fix and resubmit?
thanks,
Takashi
Quoted 28 lines
Signed-off-by Rasmus Villemoes <[email protected]>--- sound/core/seq/seq_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)sound/core/seq/seq_memory.c +2
-1@@ -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); }Signature · 6 lines
1.9.2 _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH v2 1/1 trivial: sound/core/seq/seq_memory.c: Fix closing brace followed by if
In reply to Rasmus VillemoesAdd a newline and, while at it, remove a space and redundant braces.
--- sound/core/seq/seq_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/core/seq/seq_memory.c +2 -2
@@ -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) {
Signature · 1 line
1.9.2
Takashi Iwai
AppliedAt Mon, 23 Jun 2014 17:56:09 +0200,
Quoted 4 lines · Rasmus Villemoes
Add a newline and, while at it, remove a space and redundant braces.
Signed-off-by Rasmus Villemoes <[email protected]>
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
Quoted 23 lines
--- sound/core/seq/seq_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)sound/core/seq/seq_memory.c +2
-2@@ -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) {Signature · 1 line
1.9.2