diff options
author | Pascal Huerst <pascal.huerst@gmail.com> | 2016-02-10 15:59:28 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-10 19:55:01 +0100 |
commit | 61c4a1ac4d900e743af0b363fe520405939eab47 (patch) | |
tree | 6fd5f91ba08466716ddea39a1c0b75055902bce8 /.get_maintainer.ignore | |
parent | Linux 4.5-rc1 (diff) | |
download | linux-61c4a1ac4d900e743af0b363fe520405939eab47.tar.xz linux-61c4a1ac4d900e743af0b363fe520405939eab47.zip |
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>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions