]> git.alsa-project.org Git - alsa-gobject.git/commit
ctl: query: simplify count check
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 15 Nov 2020 14:04:32 +0000 (23:04 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 15 Nov 2020 14:04:32 +0000 (23:04 +0900)
commit6bb69bcec662f0bda7202a8e02c841f751ed6908
tree4a480e58071d7cb1729040b9ab8dbbf141371591
parent0f59d584084813ff4c4436a14e596c63334b4466
ctl: 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/ctl/query.c