[alsa-devel] [PATCH] ASoC: fix simple_return.cocci warnings
kbuild test robot
fengguang.wu at intel.com
Tue Apr 28 06:20:32 CEST 2015
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
CC: Lars-Peter Clausen <lars at metafoo.de>
Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
---
ssm2518.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
--- a/sound/soc/codecs/ssm2518.c
+++ b/sound/soc/codecs/ssm2518.c
@@ -518,10 +518,7 @@ static int ssm2518_set_bias_level(struct
break;
}
- if (ret)
- return ret;
-
- return 0;
+ return ret;
}
static int ssm2518_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
More information about the Alsa-devel
mailing list