diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-04-06 13:36:06 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-04-06 19:06:29 +0200 |
commit | b8af8b1d80db13dd4f5e5a3698180bd9c14aee03 (patch) | |
tree | 3ce652ccc766ba70e53f246f769acf6662ea26d4 /sound | |
parent | ASoC: Intel: Skylake: Fix to turn OFF codec power when entering S3 (diff) | |
download | linux-b8af8b1d80db13dd4f5e5a3698180bd9c14aee03.tar.xz linux-b8af8b1d80db13dd4f5e5a3698180bd9c14aee03.zip |
ASoC: Intel: sst: fix a loop timeout in sst_hsw_stream_reset()
In the original code we ended the loop with tries set to -1 instead of
zero.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/intel/haswell/sst-haswell-ipc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/haswell/sst-haswell-ipc.c b/sound/soc/intel/haswell/sst-haswell-ipc.c index ac60f1301e21..91565229d074 100644 --- a/sound/soc/intel/haswell/sst-haswell-ipc.c +++ b/sound/soc/intel/haswell/sst-haswell-ipc.c @@ -1345,7 +1345,7 @@ int sst_hsw_stream_reset(struct sst_hsw *hsw, struct sst_hsw_stream *stream) return 0; /* wait for pause to complete before we reset the stream */ - while (stream->running && tries--) + while (stream->running && --tries) msleep(1); if (!tries) { dev_err(hsw->dev, "error: reset stream %d still running\n", |