From: kbuild test robot Date: Tue, 28 Apr 2015 04:20:32 +0000 (+0800) Subject: ASoC: ssm2518: fix simple_return.cocci warnings X-Git-Tag: v4.2-rc1~109^2~38^2~2^5~2^2 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=beb9969b8a644991dbfdaf18b9f1161a39a91df8;p=linux.git ASoC: ssm2518: fix simple_return.cocci warnings sound/soc/codecs/ssm2518.c:521:5-8: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/ssm2518.c b/sound/soc/codecs/ssm2518.c index 40b22b3fd5f6..13c6ab0f7af0 100644 --- a/sound/soc/codecs/ssm2518.c +++ b/sound/soc/codecs/ssm2518.c @@ -518,10 +518,7 @@ static int ssm2518_set_bias_level(struct snd_soc_codec *codec, break; } - if (ret) - return ret; - - return 0; + return ret; } static int ssm2518_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,