Skip to content
Snippets Groups Projects
Commit ef965ad5 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: seq: Minor cleanup of MIDI event parser helpers


snd_midi_event_encode_byte() can never fail, and it can return rather
true/false.  Change the return type to bool, adjust the argument to
receive a MIDI byte as unsigned char, and adjust the comment
accordingly.  This allows callers to drop error checks, which
simplifies the code.

Meanwhile, snd_midi_event_encode() helper is used only in seq_midi.c,
and it can be better folded into it.  This will reduce the total
amount of lines in the end.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent d5e77fca
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment