diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-03-13 06:32:53 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-13 12:08:56 +0100 |
commit | 28dbd1611f5701c9b5b8c07924c1bd2ad6f64435 (patch) | |
tree | 8e44184948f3b19cdf89fe592d668fbab38fbe6e /sound/soc/codecs/tas5086.c | |
parent | ASoC: tas5086: use module_i2c_driver to simplify the code (diff) | |
download | linux-28dbd1611f5701c9b5b8c07924c1bd2ad6f64435.tar.xz linux-28dbd1611f5701c9b5b8c07924c1bd2ad6f64435.zip |
ASoC: tas5086: signedness bug in tas5086_hw_params()
"val" has to be signed for the error handling to work.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/tas5086.c')
-rw-r--r-- | sound/soc/codecs/tas5086.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tas5086.c b/sound/soc/codecs/tas5086.c index 40cee844f0cf..d447c4aa1d5e 100644 --- a/sound/soc/codecs/tas5086.c +++ b/sound/soc/codecs/tas5086.c @@ -251,7 +251,7 @@ static int tas5086_hw_params(struct snd_pcm_substream *substream, { struct snd_soc_codec *codec = dai->codec; struct tas5086_private *priv = snd_soc_codec_get_drvdata(codec); - unsigned int val; + int val; int ret; priv->rate = params_rate(params); |