projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1328a8
)
ASoC: core: Use PTR_RET function
author
Alexandru Gheorghiu
<gheorghiuandru@gmail.com>
Mon, 25 Mar 2013 14:33:59 +0000
(16:33 +0200)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Tue, 26 Mar 2013 14:12:01 +0000
(14:12 +0000)
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>
sound/soc/soc-io.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-io.c
b/sound/soc/soc-io.c
index 29183ef2b93d2b950243149c6ffa1abcb56be69e..8ca9ecc5ac575db17e8881c57abda2b531531f17 100644
(file)
--- 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