Commit eb465ea3 authored by Tahia Khan's avatar Tahia Khan Committed by Greg Kroah-Hartman
Browse files

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: default avatarTahia Khan <tahia.khan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 118c07f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -383,7 +383,7 @@ int ia_css_queue_get_size(
			uint32_t *size)
			uint32_t *size)
{
{
	int error = 0;
	int error = 0;
	if ((qhandle == 0) || (size == NULL))
	if ((qhandle == NULL) || (size == NULL))
		return EINVAL;
		return EINVAL;


	/* 1. Load the required queue object */
	/* 1. Load the required queue object */