ASoC: nuc900: Fix a loop timeout test
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 9 Dec 2017 11:52:28 +0000 (14:52 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 31 May 2018 23:30:04 +0000 (00:30 +0100)
commit948e5ebd9b6bcec50930e39589fec706ccf745b3
tree23c3c3b519f6f085d8059c652bc7b2cad8e09b32
parentbb4efe4689dfdf4802bd1fd956123b2d98cc90ee
ASoC: nuc900: Fix a loop timeout test

commit 65a12b3aafed5fc59f4ce41b22b752b1729e6701 upstream.

We should be finishing the loop with timeout set to zero but because
this is a post-op we finish with timeout == -1.

Fixes: 1082e2703a2d ("ASoC: NUC900/audio: add nuc900 audio driver support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/soc/nuc900/nuc900-ac97.c