Commit c526ec26 authored by Tahia Khan's avatar Tahia Khan Committed by Greg Kroah-Hartman

staging: atomisp: Removes pointer comparison to 0 in ia_css_queue_enqueue

Repaces pointer comparison to 0 with NULL in ia_css_queue_enqueue
to improve code readability. Identified with coccinelle script
'badzero.cocci'.
Signed-off-by: default avatarTahia Khan <tahia.khan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dd1c0f27
...@@ -88,7 +88,7 @@ int ia_css_queue_enqueue( ...@@ -88,7 +88,7 @@ int ia_css_queue_enqueue(
uint32_t item) uint32_t item)
{ {
int error = 0; int error = 0;
if (0 == qhandle) if (NULL == qhandle)
return EINVAL; return EINVAL;
/* 1. Load the required queue object */ /* 1. Load the required queue object */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment