]> git.alsa-project.org Git - alsa-gobject.git/commit
rawmidi: query: simplify count check
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 16 Nov 2020 02:45:41 +0000 (11:45 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Mon, 16 Nov 2020 12:04:53 +0000 (21:04 +0900)
commit465aac1e9c10e10c254513e91bcbc264a4a431c7
tree564856f2f2cce6c45d9ae1caff9089eb4bba1ae5
parent97d3d21afe71a41a756f66accce13c4e71e5962c
rawmidi: query: simplify count check

Usually, when creating list of something, count decision at first, then
generate items of the list. At last, the number of items is checked as
the same as the count. However, it's unlikely to have different number
of items.

This commit simplifies the count check.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/rawmidi/query.c