From: Muhammad Falak R Wani Date: Mon, 19 Oct 2015 17:07:51 +0000 (+0530) Subject: staging: ion: Remove explicit NULL comparison X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf31378ba705945fb7b7d6e6c96e47a8a6ce4503;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: ion: Remove explicit NULL comparison Rewrite explicit NULL comparison in its simpler form. @NULL_REPLACE@ expression e; @@ -e == NULL + !e Signed-off-by: Muhammad Falak R Wani Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/ion/ion_heap.c b/drivers/staging/android/ion/ion_heap.c index e97a2c32ed78..ca15a87f6fd3 100644 --- a/drivers/staging/android/ion/ion_heap.c +++ b/drivers/staging/android/ion/ion_heap.c @@ -56,7 +56,7 @@ void *ion_heap_map_kernel(struct ion_heap *heap, vaddr = vmap(pages, npages, VM_MAP, pgprot); vfree(pages); - if (vaddr == NULL) + if (!vaddr) return ERR_PTR(-ENOMEM); return vaddr;