staging: media: atomisp: pci: Move constants to right side of comparisons
Subsystems (4)
PATCH 1/1 staging: media: atomisp: pci: Move constants to right side of comparisons
Place the constant on the right side of the comparison to increase the readability of the code.
Warning found by "checkpatch.pl".
--- .../media/atomisp/pci/atomisp2/css2400/runtime/queue/src/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/queue/src/queue.c +1 -1
@@ -88,7 +88,7 @@ int ia_css_queue_enqueue( uint32_t item) {int error =0 ; -if (NULL == qhandle) +if (qhandle ==NULL )return EINVAL ;/* 1. Load the required queue object */
Signature · 1 line
2.11.0
Quoted 6 lines · Georgiana Chelu
Place the constant on the right side of the comparison to increase the readability of the code.
Warning found by "checkpatch.pl".
Signed-off-by Georgiana Chelu <[email protected]>
Quoted 27 lines
--- .../media/atomisp/pci/atomisp2/css2400/runtime/queue/src/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/queue/src/queue.c +1
-2@@ -88,7 +88,7 @@ int ia_css_queue_enqueue( uint32_t item) {int error =0 ; -if (NULL == qhandle) +if (qhandle ==NULL )return EINVAL ;/* 1. Load the required queue object */ --2.11.0
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170916190334.awmvwhunsgz4iozl%40fireworks.
For more options, visit https://groups.google.com/d/optout.