]> git.alsa-project.org Git - alsa-gobject.git/commit
timer: instance_param: simplify count check
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 15 Nov 2020 14:04:32 +0000 (23:04 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Sun, 15 Nov 2020 23:57:30 +0000 (08:57 +0900)
commit7accd5105f6d3079dc4437eccbf3b2972d88b02e
tree0729deb2c3f1e79c2dd7580b721cf12559d00cf0
parente9cc3d5c39bc69cb1a8bca68ac2d846f2cfdfda9
timer: instance_param: 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/timer/instance-params.c