Skip to content

Commit

Permalink
ASoC: cache: Fix error code when not using ASoC level cache
Browse files Browse the repository at this point in the history
It is not an error to have no cache so we shouldn't return an error code
and cause our callers to fail, just silently do nothing instead.  Thanks
to Jarkko for identify the problematic commit.

Reported-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reported-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Mark Brown committed Jun 2, 2014
1 parent b59dce5 commit b5fc40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/soc-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int snd_soc_cache_init(struct snd_soc_codec *codec)
reg_size = codec_drv->reg_cache_size * codec_drv->reg_word_size;

if (!reg_size)
return -EINVAL;
return 0;

mutex_init(&codec->cache_rw_mutex);

Expand Down

0 comments on commit b5fc40d

Please sign in to comment.