Commit d9a02c55 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

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: default avatarFabio Estevam <festevam@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 353c64dd
...@@ -495,7 +495,7 @@ static void soc_cleanup_card_debugfs(struct snd_soc_card *card) ...@@ -495,7 +495,7 @@ static void soc_cleanup_card_debugfs(struct snd_soc_card *card)
static void snd_soc_debugfs_init(void) static void snd_soc_debugfs_init(void)
{ {
snd_soc_debugfs_root = debugfs_create_dir("asoc", NULL); 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"); pr_warn("ASoC: Failed to create debugfs directory\n");
snd_soc_debugfs_root = NULL; snd_soc_debugfs_root = NULL;
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment