Skip to content

Commit 3abe3d3

Browse files
Charles Hantiwai
authored andcommitted
ALSA: seq: seq_oss_event: fix inconsistent indenting warning in note_on_event()
Fix below inconsistent indenting smatch warning. smatch warnings: sound/core/seq/oss/seq_oss_event.c:297 note_on_event() warn: inconsistent indenting Signed-off-by: Charles Han <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 7fa25e8 commit 3abe3d3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sound/core/seq/oss/seq_oss_event.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,16 +290,14 @@ note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, st
290290
if (note == 255 && info->ch[ch].note >= 0) {
291291
/* volume control */
292292
int type;
293-
//if (! vel)
294-
/* set volume to zero -- note off */
295-
// type = SNDRV_SEQ_EVENT_NOTEOFF;
296-
//else
297-
if (info->ch[ch].vel)
293+
294+
if (info->ch[ch].vel)
298295
/* sample already started -- volume change */
299296
type = SNDRV_SEQ_EVENT_KEYPRESS;
300297
else
301298
/* sample not started -- start now */
302299
type = SNDRV_SEQ_EVENT_NOTEON;
300+
303301
info->ch[ch].vel = vel;
304302
return set_note_event(dp, dev, type, ch, info->ch[ch].note, vel, ev);
305303
} else if (note >= 128)

0 commit comments

Comments
 (0)