Skip to content
Commit 61c4a1ac authored by Pascal Huerst's avatar Pascal Huerst Committed by Mark Brown
Browse files

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: default avatarPascal Huerst <pascal.huerst@gmail.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 92e963f5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment