[alsa-devel] [PATCH] ASoC: sigmadsp: Add check for return value of i2c_master_send

Lars-Peter Clausen lars at metafoo.de
Thu Nov 26 14:04:49 CET 2015


On 11/26/2015 02:00 PM, pascal.huerst at gmail.com wrote:
> From: Pascal Huerst <pascal.huerst at gmail.com>
> 
> i2c_master_send returns the number of bytes transmitted, which leads
> to an error in the firmware download function. Check for the return
> value and only return it directly, if it is an actual error number.
> 
> Signed-off-by: Pascal Huerst <pascal.huerst at gmail.com>

Acked-by: Lars-Peter Clausen <lars at metafoo.de>

Thanks.


More information about the Alsa-devel mailing list