]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ASoC: soc-core: Use IS_ERR_OR_NULL()
authorFabio Estevam <festevam@gmail.com>
Mon, 7 Aug 2017 12:08:53 +0000 (09:08 -0300)
committerMark Brown <broonie@kernel.org>
Mon, 7 Aug 2017 15:47:24 +0000 (16:47 +0100)
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>
sound/soc/soc-core.c

index 558efdfd717df3f0e2a5fed49d9e27bde95e56bb..07d708498500cda946f26282275bbb0972dab52e 100644 (file)
@@ -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;