From: Arnd Bergmann Date: Tue, 14 Jun 2016 10:17:52 +0000 (+0200) Subject: ASoC: remove one extraneous 'const' X-Git-Tag: v4.14-rc1~2705^2~7^2~9^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f273aacc070490f2d5e02e52bbaa35d53a4df15;p=platform%2Fkernel%2Flinux-rpi.git ASoC: remove one extraneous 'const' A recent commit made a few arrays 'const', but also added the same attribute to a function return type, where it makes no sense, and we get a warning when building with W=1: sound/soc/codecs/arizona.c:1725:27: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers] static const char * const arizona_dai_clk_str(int clk_id) This removes it again. Signed-off-by: Arnd Bergmann Acked-by: Charles Keepax Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index 73eab6c..1ff0ed2 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codecs/arizona.c @@ -1711,7 +1711,7 @@ restore_aif: return ret; } -static const char * const arizona_dai_clk_str(int clk_id) +static const char *arizona_dai_clk_str(int clk_id) { switch (clk_id) { case ARIZONA_CLK_SYSCLK: