ping ? 2016-01-14 10:00 GMT+01:00 Raphael Poggi <poggi.raph@xxxxxxxxx>: > Signed-off-by: Raphael Poggi <poggi.raph@xxxxxxxxx> > --- > sound/soc/codecs/pcm179x.c | 15 +++------------ > 1 file changed, 3 insertions(+), 12 deletions(-) > > diff --git a/sound/soc/codecs/pcm179x.c b/sound/soc/codecs/pcm179x.c > index a56c7b7..e04d13c 100644 > --- a/sound/soc/codecs/pcm179x.c > +++ b/sound/soc/codecs/pcm179x.c > @@ -91,14 +91,9 @@ static int pcm179x_digital_mute(struct snd_soc_dai *dai, int mute) > { > struct snd_soc_codec *codec = dai->codec; > struct pcm179x_private *priv = snd_soc_codec_get_drvdata(codec); > - int ret; > > - ret = regmap_update_bits(priv->regmap, PCM179X_SOFT_MUTE, > + return regmap_update_bits(priv->regmap, PCM179X_SOFT_MUTE, > PCM179X_MUTE_MASK, !!mute); > - if (ret < 0) > - return ret; > - > - return 0; > } > > static int pcm179x_hw_params(struct snd_pcm_substream *substream, > @@ -107,7 +102,7 @@ static int pcm179x_hw_params(struct snd_pcm_substream *substream, > { > struct snd_soc_codec *codec = dai->codec; > struct pcm179x_private *priv = snd_soc_codec_get_drvdata(codec); > - int val = 0, ret; > + int val = 0; > > priv->rate = params_rate(params); > > @@ -145,12 +140,8 @@ static int pcm179x_hw_params(struct snd_pcm_substream *substream, > > val = val << PCM179X_FMT_SHIFT | PCM179X_ATLD_ENABLE; > > - ret = regmap_update_bits(priv->regmap, PCM179X_FMT_CONTROL, > + return regmap_update_bits(priv->regmap, PCM179X_FMT_CONTROL, > PCM179X_FMT_MASK | PCM179X_ATLD_ENABLE, val); > - if (ret < 0) > - return ret; > - > - return 0; > } > > static const struct snd_soc_dai_ops pcm179x_dai_ops = { > -- > 2.1.0 > _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel