diff options
Diffstat (limited to 'sound/soc/soc-io.c')
| -rw-r--r-- | sound/soc/soc-io.c | 5 | 
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/soc-io.c b/sound/soc/soc-io.c index 29183ef2b93..8ca9ecc5ac5 100644 --- a/sound/soc/soc-io.c +++ b/sound/soc/soc-io.c @@ -158,10 +158,7 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec,  		return -EINVAL;  	} -	if (IS_ERR(codec->control_data)) -		return PTR_ERR(codec->control_data); - -	return 0; +	return PTR_RET(codec->control_data);  }  EXPORT_SYMBOL_GPL(snd_soc_codec_set_cache_io);  #else  |