mirror of https://github.com/torvalds/linux.git
ALSA: rawmidi: Fix inconsistent indenting warning reported by smatch
Fix smatch reported inconsistent indenting warning in rawmidi. sound/core/rawmidi.c:2115 alsa_rawmidi_init() warn: inconsistent indenting. No functional changes were introduced. Signed-off-by: HariKrishna Sagala <hariconscious@gmail.com> Link: https://patch.msgid.link/20251201151137.29536-4-hariconscious@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
72987d2ddc
commit
ef5e0a02d8
|
|
@ -2106,13 +2106,11 @@ EXPORT_SYMBOL(snd_rawmidi_set_ops);
|
|||
|
||||
static int __init alsa_rawmidi_init(void)
|
||||
{
|
||||
|
||||
snd_ctl_register_ioctl(snd_rawmidi_control_ioctl);
|
||||
snd_ctl_register_ioctl_compat(snd_rawmidi_control_ioctl);
|
||||
#ifdef CONFIG_SND_OSSEMUL
|
||||
{ int i;
|
||||
/* check device map table */
|
||||
for (i = 0; i < SNDRV_CARDS; i++) {
|
||||
for (int i = 0; i < SNDRV_CARDS; i++) {
|
||||
if (midi_map[i] < 0 || midi_map[i] >= SNDRV_RAWMIDI_DEVICES) {
|
||||
pr_err("ALSA: rawmidi: invalid midi_map[%d] = %d\n",
|
||||
i, midi_map[i]);
|
||||
|
|
@ -2124,7 +2122,6 @@ static int __init alsa_rawmidi_init(void)
|
|||
amidi_map[i] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_SND_OSSEMUL */
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue