summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/sigmadsp-i2c.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2016-02-26 22:26:09 +0300
committerTakashi Iwai <tiwai@suse.de>2016-02-26 22:26:09 +0300
commitd61b04f801e6005182d432ebe4a0211c1d6feadd (patch)
treeaa085e56e1be528917212f41c485eebdfc072930 /sound/soc/codecs/sigmadsp-i2c.c
parent30ff5957c3f1887d04ca01d839dc382739e48bde (diff)
parent473f414564528a819f0c2bb6b4bf26366b64c9ab (diff)
downloadlinux-d61b04f801e6005182d432ebe4a0211c1d6feadd.tar.xz
Merge branch 'for-linus' into for-next
Diffstat (limited to 'sound/soc/codecs/sigmadsp-i2c.c')
-rw-r--r--sound/soc/codecs/sigmadsp-i2c.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/codecs/sigmadsp-i2c.c b/sound/soc/codecs/sigmadsp-i2c.c
index 21ca3a5e9f66..d374c18d4db7 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,