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

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>

authored by

Amitoj Kaur Chawla and committed by
Greg Kroah-Hartman
dcce1c7c 0969e3d4

+1 -1
+1 -1
drivers/staging/android/ion/tegra/tegra_ion.c
··· 37 37 sizeof(struct ion_heap *), GFP_KERNEL); 38 38 39 39 idev = ion_device_create(NULL); 40 - if (IS_ERR_OR_NULL(idev)) 40 + if (IS_ERR(idev)) 41 41 return PTR_ERR(idev); 42 42 43 43 /* create the heaps as specified in the board file */