]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ASoC: simple-card-utils: remove set but not used variable 'dai_name'
authorYueHaibing <yuehaibing@huawei.com>
Mon, 25 Mar 2019 03:17:40 +0000 (03:17 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 1 Apr 2019 08:32:28 +0000 (15:32 +0700)
Fixes gcc '-Wunused-but-set-variable' warning:

sound/soc/generic/simple-card-utils.c: In function 'asoc_simple_parse_clk':
sound/soc/generic/simple-card-utils.c:164:18: warning:
 parameter 'dai_name' set but not used [-Wunused-but-set-parameter]

It's not used since commit 0580dde59438 ("ASoC: simple-card-utils: add
asoc_simple_debug_info()"), so can be removed.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-card-utils.c

index 4ed68348f939b8a04918b29d746c91c6b42b1298..db1458a19985f8cc6dfdf47030fed2313e8cb24a 100644 (file)
@@ -173,10 +173,8 @@ int asoc_simple_parse_clk(struct device *dev,
         * see
         *      soc-core.c :: snd_soc_init_multicodec()
         */
-       if (dlc) {
+       if (dlc)
                dai_of_node     = dlc->of_node;
-               dai_name        = dlc->dai_name;
-       }
 
        /*
         * Parse dai->sysclk come from "clocks = <&xxx>"