diff options
author | Tahia Khan <tahia.khan@gmail.com> | 2017-03-15 00:03:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-16 11:23:00 +0900 |
commit | c526ec265376562f69c78203c26f994f003661ff (patch) | |
tree | 1611d9a0b25cb6d4b295c9087a23dea338c15e9a /drivers | |
parent | dd1c0f278b0e59c80f07b1c491a6cb5d2cf13844 (diff) | |
download | op-kernel-dev-c526ec265376562f69c78203c26f994f003661ff.zip op-kernel-dev-c526ec265376562f69c78203c26f994f003661ff.tar.gz |
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')
-rw-r--r-- | drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/queue/src/queue.c | 2 |
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 06667bd..e4f589f 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 */ |