diff options
author | Tahia Khan <tahia.khan@gmail.com> | 2017-03-15 00:03:14 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-16 11:23:00 +0900 |
commit | eb465ea39148efd0253f018fc7c200cc406ecae2 (patch) | |
tree | 8b02b83c6531579253b8c66fed1fe5e7f1b72746 /drivers/staging/media | |
parent | 118c07f978b676c790372e2f43ee654b5490bc97 (diff) |
staging: atomisp: Removes pointer comparison to 0 in ia_css_queue_get_size
Repaces pointer comparison to 0 with NULL in ia_css_queue_get_size
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')
-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 f397a8cd5440..606376fdf0ba 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 @@ -383,7 +383,7 @@ int ia_css_queue_get_size( uint32_t *size) { int error = 0; - if ((qhandle == 0) || (size == NULL)) + if ((qhandle == NULL) || (size == NULL)) return EINVAL; /* 1. Load the required queue object */ |