summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAlexandru Gheorghiu <gheorghiuandru@gmail.com>2013-03-25 16:33:59 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-26 14:12:01 +0000
commit36300fd09823be8f7d6feaaa79ddbf54cf205378 (patch)
tree1bc1cb8b7b6042506770ad2a434332ad30f8a59a /sound
parente1328a832c7eeeb4dd3c3666605717c555de9e83 (diff)
downloadblackbird-op-linux-36300fd09823be8f7d6feaaa79ddbf54cf205378.tar.gz
blackbird-op-linux-36300fd09823be8f7d6feaaa79ddbf54cf205378.zip
ASoC: core: Use PTR_RET function
Used PTR_RET function instead of IS_ERR and PTR_ERR. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-io.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/soc-io.c b/sound/soc/soc-io.c
index 29183ef2b93d..8ca9ecc5ac57 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
OpenPOWER on IntegriCloud