]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: control: clean up snd_ctl_hole_check()
authorClemens Ladisch <clemens@ladisch.de>
Mon, 7 Mar 2011 12:24:30 +0000 (13:24 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Mar 2011 12:00:09 +0000 (13:00 +0100)
commit146b2b9f76d7ebcc878a1cba0af5e8c72ccdfeaa
tree697955215071627ca3209ec51cde532b53a5973d
parenta11a94fd1e537bc9f991d0f4cdb3836b38c4f727
ALSA: control: clean up snd_ctl_hole_check()

The return value of snd_ctl_hole_check() is used only to detect whether
to continue the loop in snd_ctl_find_hole() or not, so we can simplify
the code by changing this return type to a boolean.  Also rename this
function to better show what it actually does.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c