From: kbuild test robot Date: Tue, 28 Apr 2015 04:20:32 +0000 (+0800) Subject: ASoC: adau1977: fix simple_return.cocci warnings X-Git-Tag: firefly_0821_release~176^2~1082^2~116^2~6^5~9 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fb75ee66c2707f56397eb29c01decf36254e3d46;p=firefly-linux-kernel-4.4.55.git ASoC: adau1977: fix simple_return.cocci warnings sound/soc/codecs/adau1977.c:496: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/adau1977.c b/sound/soc/codecs/adau1977.c index c5b1b8e4e7fc..3fb09c165055 100644 --- a/sound/soc/codecs/adau1977.c +++ b/sound/soc/codecs/adau1977.c @@ -493,10 +493,7 @@ static int adau1977_set_bias_level(struct snd_soc_codec *codec, break; } - if (ret) - return ret; - - return 0; + return ret; } static int adau1977_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,