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)
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

Simple merge