Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <hanchunchao@inspur.com>
Link: https://patch.msgid.link/20250228033427.7056-1-hanchunchao@inspur.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Charles Han and committed by
Takashi Iwai
3abe3d34 7fa25e87

+3 -5
+3 -5
sound/core/seq/oss/seq_oss_event.c
··· 290 290 if (note == 255 && info->ch[ch].note >= 0) { 291 291 /* volume control */ 292 292 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) 298 295 /* sample already started -- volume change */ 299 296 type = SNDRV_SEQ_EVENT_KEYPRESS; 300 297 else 301 298 /* sample not started -- start now */ 302 299 type = SNDRV_SEQ_EVENT_NOTEON; 300 + 303 301 info->ch[ch].vel = vel; 304 302 return set_note_event(dp, dev, type, ch, info->ch[ch].note, vel, ev); 305 303 } else if (note >= 128)