mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
staging: ion: Remove explicit NULL comparison
Rewrite explicit NULL comparison in its simpler form. <smpl> @NULL_REPLACE@ expression e; @@ -e == NULL + !e Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7346489110
commit
cf31378ba7
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ void *ion_heap_map_kernel(struct ion_heap *heap,
|
||||||
vaddr = vmap(pages, npages, VM_MAP, pgprot);
|
vaddr = vmap(pages, npages, VM_MAP, pgprot);
|
||||||
vfree(pages);
|
vfree(pages);
|
||||||
|
|
||||||
if (vaddr == NULL)
|
if (!vaddr)
|
||||||
return ERR_PTR(-ENOMEM);
|
return ERR_PTR(-ENOMEM);
|
||||||
|
|
||||||
return vaddr;
|
return vaddr;
|
||||||
|
|
Loading…
Reference in a new issue