drivers:staging:silicom fixed checkpatch coding style error on macros
authorSurendra Patil <surendra.tux@gmail.com>
Wed, 12 Feb 2014 07:57:23 +0000 (23:57 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Feb 2014 17:32:17 +0000 (09:32 -0800)
checkpatch displays below errors for bypasslib/bp_ioctl.h file

 ERROR: Macros with complex values should be enclosed in parenthesis
Hence added parenthesis for macros with complex values.

Signed-off-by: Surendra Patil <surendra.tux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/silicom/bypasslib/bp_ioctl.h

index 2d1ef5384436db490775c4482ca526bb3213716c..a0fb79fd1909c0b34d768744c88b2adfab15f559 100644 (file)
@@ -51,7 +51,7 @@
 #define WDT_STEP_TIME              0x10        /* BIT_4 */
 
 #define WD_MIN_TIME_GET(desc)   (desc & 0xf)
-#define WD_STEP_COUNT_GET(desc) (desc>>5) & 0xf
+#define WD_STEP_COUNT_GET(desc) ((desc>>5) & 0xf)
 
 typedef enum {
        IS_BYPASS = 1,
@@ -156,7 +156,7 @@ typedef enum {
 
 } CMND_TYPE_SD;
 
-#define SIOCGIFBYPASS SIOCDEVPRIVATE+10
+#define SIOCGIFBYPASS (SIOCDEVPRIVATE+10)
 
 struct bp_info {
        char prod_name[14];