summaryrefslogtreecommitdiff
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2017-08-07 09:08:53 -0300
committerMark Brown <broonie@kernel.org>2017-08-07 16:47:24 +0100
commitd9a02c552cd69c466998e3afdf420cb4c0b9d9d9 (patch)
tree9289218c61791811c1c56283927641ed25586603 /sound/soc/soc-core.c
parent353c64dd19ebc99786c3578ea0444e1b5b1bb172 (diff)
ASoC: soc-core: Use IS_ERR_OR_NULL()
The check of IS_ERR or NULL pointer can be replaced by IS_ERR_OR_NULL(), which helps readability. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 558efdfd717d..07d708498500 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -495,7 +495,7 @@ static void soc_cleanup_card_debugfs(struct snd_soc_card *card)
static void snd_soc_debugfs_init(void)
{
snd_soc_debugfs_root = debugfs_create_dir("asoc", NULL);
- if (IS_ERR(snd_soc_debugfs_root) || !snd_soc_debugfs_root) {
+ if (IS_ERR_OR_NULL(snd_soc_debugfs_root)) {
pr_warn("ASoC: Failed to create debugfs directory\n");
snd_soc_debugfs_root = NULL;
return;