summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime
diff options
context:
space:
mode:
authorTahia Khan <tahia.khan@gmail.com>2017-03-15 00:03:09 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-16 11:23:00 +0900
commit118c07f978b676c790372e2f43ee654b5490bc97 (patch)
tree401c689b943dc2fd168eeee64ab67011c2eddd40 /drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime
parentc526ec265376562f69c78203c26f994f003661ff (diff)
downloadop-kernel-dev-118c07f978b676c790372e2f43ee654b5490bc97.zip
op-kernel-dev-118c07f978b676c790372e2f43ee654b5490bc97.tar.gz
staging: atomisp: Removes pointer comparison to 0 in ia_css_queue_dequeue
Repaces pointer comparison to 0 with NULL in ia_css_queue_dequeue 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/runtime')
-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 e4f589f..f397a8c 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
@@ -146,7 +146,7 @@ int ia_css_queue_dequeue(
uint32_t *item)
{
int error = 0;
- if (qhandle == 0 || NULL == item)
+ if (qhandle == NULL || NULL == item)
return EINVAL;
/* 1. Load the required queue object */
OpenPOWER on IntegriCloud