lkml.org 
[lkml]   [2016]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] irqdomain: fix compare_const_fl.cocci warnings
 Move constants to the right of binary operators.

Generated by: scripts/coccinelle/misc/compare_const_fl.cocci

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
---

Not a big deal, but the transformed code looks better to me.

irqdomain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -618,7 +618,7 @@ unsigned int irq_create_fwspec_mapping(s
* If the trigger type has not been set yet, then set
* it now and return the interrupt number.
*/
- if (IRQ_TYPE_NONE == irq_get_trigger_type(virq)) {
+ if (irq_get_trigger_type(virq) == IRQ_TYPE_NONE) {
irq_set_irq_type(virq, type);
return virq;
}
\
 
 \ /
  Last update: 2016-04-20 19:01    [W:0.049 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site