From: Tahia Khan Date: Wed, 15 Mar 2017 04:03:05 +0000 (-0400) Subject: staging: atomisp: Removes pointer comparison to 0 in ia_css_queue_enqueue X-Git-Tag: v4.12-rc1~84^2~504 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c526ec265376562f69c78203c26f994f003661ff;p=thirdparty%2Fkernel%2Flinux.git 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 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 06667bdbb0eb0..e4f589f35566b 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 */