Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pinctrl: Prefer IS_ERR_OR_NULL over manual NULL check

Prefer using IS_ERR_OR_NULL() over using IS_ERR() and a manual NULL
check.

Change generated with coccinelle.

To: Linus Walleij <linusw@kernel.org>
Cc: linux-gpio@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Philipp Hahn <phahn-oss@avm.de>
Signed-off-by: Linus Walleij <linusw@kernel.org>

authored by

Philipp Hahn and committed by
Linus Walleij
b7fff045 ca0395d9

+1 -1
+1 -1
drivers/pinctrl/core.c
··· 1992 1992 device_root = debugfs_create_dir(debugfs_name, debugfs_root); 1993 1993 pctldev->device_root = device_root; 1994 1994 1995 - if (IS_ERR(device_root) || !device_root) { 1995 + if (IS_ERR_OR_NULL(device_root)) { 1996 1996 pr_warn("failed to create debugfs directory for %s\n", 1997 1997 dev_name(pctldev->dev)); 1998 1998 return;