Skip to content

Commit

Permalink
ASoC: ssm2518: fix simple_return.cocci warnings
Browse files Browse the repository at this point in the history
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

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
kbuild test robot authored and Mark Brown committed Apr 30, 2015
1 parent fb75ee6 commit beb9969
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sound/soc/codecs/ssm2518.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,7 @@ static int ssm2518_set_bias_level(struct snd_soc_codec *codec,
break;
}

if (ret)
return ret;

return 0;
return ret;
}

static int ssm2518_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
Expand Down

0 comments on commit beb9969

Please sign in to comment.