From: Fabio Estevam Date: Mon, 7 Aug 2017 12:08:53 +0000 (-0300) Subject: ASoC: soc-core: Use IS_ERR_OR_NULL() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d9a02c552cd69c466998e3afdf420cb4c0b9d9d9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Mark Brown --- 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;