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>
This commit is contained in:
kbuild test robot 2015-04-28 12:20:32 +08:00 committed by Mark Brown
parent f4bf8d770b
commit fb75ee66c2

View File

@ -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,