commit | 61c4a1ac4d900e743af0b363fe520405939eab47 | [log] [tgz] |
---|---|---|
author | Pascal Huerst <pascal.huerst@gmail.com> | Wed Feb 10 15:59:28 2016 +0100 |
committer | Mark Brown <broonie@kernel.org> | Wed Feb 10 18:55:01 2016 +0000 |
tree | 6fd5f91ba08466716ddea39a1c0b75055902bce8 | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d [diff] |
ASoC: sigmadsp: Fix missleading return value Forwarding the return value of i2c_master_send, leads to errors later on, since i2c_master_send returns the number of bytes transmittet. Check for ret < 0 instead and return 0 otherwise. Signed-off-by: Pascal Huerst <pascal.huerst@gmail.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>