summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/atomisp/pci/atomisp2/css2400
diff options
context:
space:
mode:
authorTahia Khan2017-03-15 05:03:05 +0100
committerGreg Kroah-Hartman2017-03-16 03:23:00 +0100
commitc526ec265376562f69c78203c26f994f003661ff (patch)
tree1611d9a0b25cb6d4b295c9087a23dea338c15e9a /drivers/staging/media/atomisp/pci/atomisp2/css2400
parentstaging: media: atomisp: fix build error in ov5693 driver (diff)
downloadkernel-qcow2-linux-c526ec265376562f69c78203c26f994f003661ff.tar.gz
kernel-qcow2-linux-c526ec265376562f69c78203c26f994f003661ff.tar.xz
kernel-qcow2-linux-c526ec265376562f69c78203c26f994f003661ff.zip
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: Tahia Khan <tahia.khan@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/media/atomisp/pci/atomisp2/css2400')
-rw-r--r--drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/queue/src/queue.c2
1 files changed, 1 insertions, 1 deletions
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 06667bdbb0eb..e4f589f35566 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
@@ -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 */