summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/adau1977.c
diff options
context:
space:
mode:
authorkbuild test robot <fengguang.wu@intel.com>2015-04-28 12:20:32 +0800
committerMark Brown <broonie@kernel.org>2015-04-30 21:24:17 +0100
commitfb75ee66c2707f56397eb29c01decf36254e3d46 (patch)
treed48b66b2e569a900b888ba950d0be2fef22b35de /sound/soc/codecs/adau1977.c
parentf4bf8d770b58862c2af9d17adc2fee05bef8f2c0 (diff)
downloadop-kernel-dev-fb75ee66c2707f56397eb29c01decf36254e3d46.zip
op-kernel-dev-fb75ee66c2707f56397eb29c01decf36254e3d46.tar.gz
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 <fengguang.wu@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/adau1977.c')
-rw-r--r--sound/soc/codecs/adau1977.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/codecs/adau1977.c b/sound/soc/codecs/adau1977.c
index c5b1b8e..3fb09c1 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,
OpenPOWER on IntegriCloud