From: Tahia Khan Date: Wed, 15 Mar 2017 04:03:14 +0000 (-0400) Subject: staging: atomisp: Removes pointer comparison to 0 in ia_css_queue_get_size X-Git-Tag: v4.12-rc1~84^2~502 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=eb465ea39148efd0253f018fc7c200cc406ecae2;p=linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/queue/src/queue.c b/drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/queue/src/queue.c index f397a8cd5440..606376fdf0ba 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/queue/src/queue.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/queue/src/queue.c @@ -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 */