From: Lars-Peter Clausen Date: Fri, 28 Feb 2014 07:31:12 +0000 (+0100) Subject: ASoC: dapm: Break dapm_set_path_status() appart X-Git-Tag: v3.15-rc1~36^2~1^2~5^2~12^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=234c0b8fb0db790aaebec07d1d190e789d8ec7b9;p=pandora-kernel.git ASoC: dapm: Break dapm_set_path_status() appart There are three different completely independent code paths in dapm_set_path_status(). One of them is never used at all and the other two (one for mixers, one for MUXs) have their distincive callsites that always go onto the same path. Breaking the function into two parts allows us to reduce the code size and in the MUX case also do some optimizations to avoid having to calcualte the selected item for each item again. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed