Skip to contentSkip to conversation

ALSA: seq: oss: Fix inconsistent indenting

PATCH In review Yang Li 2 participants 3 messages Apr 16, 2021 – Apr 19, 2021 Sound

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 ALSA: seq: oss: Fix inconsistent indenting

Kernel test robot throws below warning ->

smatch warnings:
sound/core/seq/oss/seq_oss_event.c:297 note_on_event() warn:
inconsistent indenting

Fixed the inconsistent indenting.

---
 sound/core/seq/oss/seq_oss_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/core/seq/oss/seq_oss_event.c +1 -1
index 7b7c925..9a42713 100644
@@ -294,7 +294,7 @@
 				/* set volume to zero -- note off */
 			//	type = SNDRV_SEQ_EVENT_NOTEOFF;
 			//else
-				if (info->ch[ch].vel)
+			if (info->ch[ch].vel)
 				/* sample already started -- volume change */
 				type = SNDRV_SEQ_EVENT_KEYPRESS;
 			else
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 20 lines · Yang Li

Kernel test robot throws below warning ->

smatch warnings:
sound/core/seq/oss/seq_oss_event.c:297 note_on_event() warn:
inconsistent indenting

Fixed the inconsistent indenting.

---
 sound/core/seq/oss/seq_oss_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/core/seq/oss/seq_oss_event.c +0 -0
index 7b7c925..9a42713 100644

sound/core/seq/oss/seq_oss_event.c line 299

Quoted 7 lines
sound/core/seq/oss/seq_oss_event.c +1 -1
@@ -294,7 +294,7 @@
 				/* set volume to zero -- note off */
 			//	type = SNDRV_SEQ_EVENT_NOTEOFF;
 			//else
-				if (info->ch[ch].vel)
+			if (info->ch[ch].vel)
 				/* sample already started -- volume change */
 				type = SNDRV_SEQ_EVENT_KEYPRESS;

The line was aligned with the commented if block.
If any, we should rather clean up and re-format the whole block. (But, OTOH, you shouldn't remove the stuff without understanding the context.)

thanks,

Takashi

author
#2 lore raw

Thank you for your suggestion. I will revise and submit it according to the context in the future.

yang
------------------------------------------------------------------
发件人:Takashi Iwai <[email protected]>
发送时间:2021年4月16日(星期五) 18:41
收件人:Yang Li <[email protected]>
抄 送:perex <[email protected]>; tiwai <[email protected]>; alsa-devel <[email protected]>; linux-kernel <[email protected]> 主 题:Re: [PATCH] ALSA: seq: oss: Fix inconsistent indenting

Quoted 20 lines · Yang Li

Kernel test robot throws below warning ->

smatch warnings:
sound/core/seq/oss/seq_oss_event.c:297 note_on_event() warn:
inconsistent indenting

Fixed the inconsistent indenting.

---
 sound/core/seq/oss/seq_oss_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/core/seq/oss/seq_oss_event.c +0 -0
index 7b7c925..9a42713 100644

sound/core/seq/oss/seq_oss_event.c line 299

Quoted 7 lines
sound/core/seq/oss/seq_oss_event.c +1 -1
@@ -294,7 +294,7 @@
     /* set volume to zero -- note off */
    // type = SNDRV_SEQ_EVENT_NOTEOFF;
    //else
-    if (info->ch[ch].vel)
+   if (info->ch[ch].vel)
     /* sample already started -- volume change */
     type = SNDRV_SEQ_EVENT_KEYPRESS;

The line was aligned with the commented if block.
If any, we should rather clean up and re-format the whole block. (But, OTOH, you shouldn't remove the stuff without understanding the context.)

thanks,

Takashi