Skip to contentSkip to conversation

staging: media: atomisp: pci: Move constants to right side of comparisons

PATCH In review Georgiana Chelu 2 participants 2 messages Sep 16, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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
index 606376fdf0ba..81c0e057a8b8 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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".

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
index 606376fdf0ba..81c0e057a8b8 100644
@@ -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.