[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190603185412.GA11183@hari-Inspiron-1545>
Date: Tue, 4 Jun 2019 00:24:12 +0530
From: Hariprasad Kelam <hariprasad.kelam@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Carmeli Tamir <carmeli.tamir@...il.com>,
Nishad Kamdar <nishadkamdar@...il.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH] Staging: emxx_udc: fix warning "sum of probable bitmasks,
consider |"
Knowing the fact that operator '|' is faster than '+'.
Its better we replace + with | in this case.
Issue reported by coccicheck
drivers/staging/emxx_udc/emxx_udc.h:94:34-35: WARNING: sum of probable
bitmasks, consider |
Signed-off-by: Hariprasad Kelam <hariprasad.kelam@...il.com>
---
drivers/staging/emxx_udc/emxx_udc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/emxx_udc/emxx_udc.h b/drivers/staging/emxx_udc/emxx_udc.h
index b8c3dee..88d6bda 100644
--- a/drivers/staging/emxx_udc/emxx_udc.h
+++ b/drivers/staging/emxx_udc/emxx_udc.h
@@ -91,7 +91,7 @@ int vbus_irq;
#define BIT30 0x40000000
#define BIT31 0x80000000
-#define TEST_FORCE_ENABLE (BIT18 + BIT16)
+#define TEST_FORCE_ENABLE (BIT18 | BIT16)
#define INT_SEL BIT10
#define CONSTFS BIT09
--
2.7.4
Powered by blists - more mailing lists