From 118c07f978b676c790372e2f43ee654b5490bc97 Mon Sep 17 00:00:00 2001 From: Tahia Khan Date: Wed, 15 Mar 2017 00:03:09 -0400 Subject: 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 Signed-off-by: Greg Kroah-Hartman --- .../media/atomisp/pci/atomisp2/css2400/runtime/queue/src/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime') 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 e4f589f35566..f397a8cd5440 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 */ -- cgit v1.2.3-55-g7522