[PATCH 04/14 v2] Staging: bcm: Enclose complex values in parenthesis in nvm.h

Kevin McKinney klmckinney1 at gmail.com
Sat Dec 1 06:15:47 UTC 2012


This patch fixes the warning: "Macros with complex values
should be enclosed in parenthesis" as reported by
checkpatch.pl

Signed-off-by: Kevin McKinney <klmckinney1 at gmail.com>
---
 drivers/staging/bcm/nvm.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/bcm/nvm.h b/drivers/staging/bcm/nvm.h
index 36a9707..a7b2d3f 100644
--- a/drivers/staging/bcm/nvm.h
+++ b/drivers/staging/bcm/nvm.h
@@ -265,10 +265,10 @@ typedef struct _ISO_HEADER {
 #define CORRUPTED_PATTERN		0x0
 #define UNINIT_PTR_IN_CS		0xBBBBDDDD
 #define VENDOR_PTR_IN_CS		0xAAAACCCC
-#define FLASH2X_SECTION_PRESENT		1 << 0
-#define FLASH2X_SECTION_VALID		1 << 1
-#define FLASH2X_SECTION_RO		1 << 2
-#define FLASH2X_SECTION_ACT		1 << 3
+#define FLASH2X_SECTION_PRESENT		(1 << 0)
+#define FLASH2X_SECTION_VALID		(1 << 1)
+#define FLASH2X_SECTION_RO		(1 << 2)
+#define FLASH2X_SECTION_ACT		(1 << 3)
 #define SECTOR_IS_NOT_WRITABLE		STATUS_FAILURE
 #define INVALID_OFFSET			STATUS_FAILURE
 #define INVALID_SECTION			STATUS_FAILURE
-- 
1.7.9.5




More information about the devel mailing list