]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Refactor slot assignment code
authorTakashi Iwai <tiwai@suse.de>
Thu, 23 Jan 2014 10:02:15 +0000 (11:02 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 23 Jan 2014 10:45:24 +0000 (11:45 +0100)
commit3e95e28cd5aa771eb449043a49188909bf7f0cba
tree02b80b39a1867aeef2deb2b92d1a2e0f0b948729
parent5a97f4abfcabda362d37212c5e2e677eef3eb1f6
ALSA: Refactor slot assignment code

There are two loops that are almost identical but only with different
checks.  Refactor them with a simple helper, and give a bit more
comments what's doing there.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/init.c