staging: atomisp: Removes pointer comparison to 0 in ia_css_queue_enqueue
authorTahia Khan <tahia.khan@gmail.com>
Wed, 15 Mar 2017 04:03:05 +0000 (00:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Mar 2017 02:23:00 +0000 (11:23 +0900)
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: Tahia Khan <tahia.khan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/queue/src/queue.c

index 06667bd..e4f589f 100644 (file)
@@ -88,7 +88,7 @@ int ia_css_queue_enqueue(
                        uint32_t item)
 {
        int error = 0;
-       if (0 == qhandle)
+       if (NULL == qhandle)
                return EINVAL;
 
        /* 1. Load the required queue object */