Commit fb75ee66 authored by kbuild test robot's avatar kbuild test robot Committed by Mark Brown

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f4bf8d77
...@@ -493,10 +493,7 @@ static int adau1977_set_bias_level(struct snd_soc_codec *codec, ...@@ -493,10 +493,7 @@ static int adau1977_set_bias_level(struct snd_soc_codec *codec,
break; break;
} }
if (ret) return ret;
return ret;
return 0;
} }
static int adau1977_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, static int adau1977_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment