From: Surendra Patil Date: Wed, 12 Feb 2014 07:57:23 +0000 (-0800) Subject: drivers:staging:silicom fixed checkpatch coding style error on macros X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f1fe476ecb35e5f9ef62b58016fa4f71e1233bbe;p=openwrt%2Fstaging%2Fblogic.git drivers:staging:silicom fixed checkpatch coding style error on macros 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/silicom/bypasslib/bp_ioctl.h b/drivers/staging/silicom/bypasslib/bp_ioctl.h index 2d1ef5384436..a0fb79fd1909 100644 --- a/drivers/staging/silicom/bypasslib/bp_ioctl.h +++ b/drivers/staging/silicom/bypasslib/bp_ioctl.h @@ -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];