Pascal Huerst 61c4a1ac4d 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>
2016-02-10 18:55:01 +00:00
..
2016-01-22 11:53:56 -08:00
2016-01-17 12:05:31 -08:00
2016-01-22 11:53:56 -08:00
2016-01-20 09:59:27 +01:00
2016-01-17 12:05:31 -08:00
2015-08-31 16:25:22 +02:00