diff options
Diffstat (limited to 'sound/soc/codecs/sigmadsp-i2c.c')
-rw-r--r-- | sound/soc/codecs/sigmadsp-i2c.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/codecs/sigmadsp-i2c.c b/sound/soc/codecs/sigmadsp-i2c.c index 21ca3a5e9..d374c18d4 100644 --- a/sound/soc/codecs/sigmadsp-i2c.c +++ b/sound/soc/codecs/sigmadsp-i2c.c @@ -31,7 +31,10 @@ static int sigmadsp_write_i2c(void *control_data, kfree(buf); - return ret; + if (ret < 0) + return ret; + + return 0; } static int sigmadsp_read_i2c(void *control_data, |