]> git.alsa-project.org Git - alsa-lib.git/commit
control: keep consistent usage of assertion
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 22 Feb 2016 13:13:31 +0000 (22:13 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Feb 2016 14:00:43 +0000 (15:00 +0100)
commit6d4736197ed6cd961717154d1f42d59092ff6764
tree61f28ebdc1125704e59666d85a99582e24c3ef67
parent2b0ea7eefb7f23a8d29fcba55ab7f67d6929e181
control: keep consistent usage of assertion

In most codes for control APIs, assertions are used to check given
arguments from applications. If the arguments are not expected, the
application is forced to abort. When NDEBUG is defined in the beginning
of the codes, no checks are performed.

Although, in snd_ctl_elem_set_bytes(), assertion is used with condition
statement. There's an intention to check the arguments regardless of
NDEBUG. However, this is not the same fashion in the codes.

This commit applies the same fashion to the function, to keep consistent
usage of assertion.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/control/control.c