Linux Kernels

staging: android: ion: tegra: Replace IS_ERR_OR_NULL with IS_ERR

This change “staging: android: ion: tegra: Replace IS_ERR_OR_NULL with IS_ERR” (commit dcce1c7) in Linux kernel is authored by Amitoj Kaur Chawla <amitoj1606 [at] gmail.com> on Thu Feb 25 19:52:27 2016 +0530.

Description of "staging: android: ion: tegra: Replace IS_ERR_OR_NULL with IS_ERR"

The change “staging: android: ion: tegra: Replace IS_ERR_OR_NULL with IS_ERR” introduces changes as follows.

staging: android: ion: tegra: Replace IS_ERR_OR_NULL with IS_ERR

Replace IS_ERR_OR_NULL test with an IS_ERR test since
ion_device_create() function returns a valid device or a -PTR_ERR
only as evidenced by the comment on the function prototype.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Linux kernel releases containing commit dcce1c7

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "staging: android: ion: tegra: Replace IS_ERR_OR_NULL with IS_ERR"

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/staging/android/ion/tegra/tegra_ion.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/drivers/staging/android/ion/tegra/tegra_ion.c b/drivers/staging/android/ion/tegra/tegra_ion.c
index 88285243d53d..49e55e5acead 100644
--- a/drivers/staging/android/ion/tegra/tegra_ion.c
+++ b/drivers/staging/android/ion/tegra/tegra_ion.c
@@ -37,7 +37,7 @@ static int tegra_ion_probe(struct platform_device *pdev)
 			     sizeof(struct ion_heap *), GFP_KERNEL);
 
 	idev = ion_device_create(NULL);
-	if (IS_ERR_OR_NULL(idev))
+	if (IS_ERR(idev))
 		return PTR_ERR(idev);
 
 	/* create the heaps as specified in the board file */

The commit for this change in Linux stable tree is dcce1c7 (patch).

Last modified: 2020/01/11 06:51