staging: atomisp: Removes pointer comparison to 0 in ia_css_queue_get_size
Repaces pointer comparison to 0 with NULL in ia_css_queue_get_size to improve code readability. Identified with coccinelle script 'badzero.cocci'. Signed-off-by: Tahia Khan <tahia.khan@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
118c07f978
commit
eb465ea391
@ -383,7 +383,7 @@ int ia_css_queue_get_size(
|
||||
uint32_t *size)
|
||||
{
|
||||
int error = 0;
|
||||
if ((qhandle == 0) || (size == NULL))
|
||||
if ((qhandle == NULL) || (size == NULL))
|
||||
return EINVAL;
|
||||
|
||||
/* 1. Load the required queue object */
|
||||
|
Loading…
x
Reference in New Issue
Block a user