]> 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)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 16 Nov 2020 02:45:41 +0000 (11:45 +0900)
commitccb9612e8feba25a1daa7afc0fe2452d5f273f42
tree564856f2f2cce6c45d9ae1caff9089eb4bba1ae5
parenta27e125c5730b588174420819a2ea7794a21cf3d
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