]> git.alsa-project.org Git - alsa-gobject.git/commit
hwdep: 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)
commitcbfb12fe31e293328620f0c3b8280664a1634b81
tree8267e107706f8b7b44b4f537b065742280a82597
parent436b5dea778d866823ea6c32fad9f37124db6db4
hwdep: 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/hwdep/query.c