staging: android: ion: tegra: Replace IS_ERR_OR_NULL with IS_ERR
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Thu, 25 Feb 2016 14:22:27 +0000 (19:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
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>
drivers/staging/android/ion/tegra/tegra_ion.c

index 88285243d53d9943880f575df4860091c4742be1..49e55e5acead9d1b8851c82176eca9c294d74545 100644 (file)
@@ -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 */