Commit f1fe476e authored by Surendra Patil's avatar Surendra Patil Committed by Greg Kroah-Hartman

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: default avatarSurendra Patil <surendra.tux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4624b543
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
#define WDT_STEP_TIME 0x10 /* BIT_4 */ #define WDT_STEP_TIME 0x10 /* BIT_4 */
#define WD_MIN_TIME_GET(desc) (desc & 0xf) #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 { typedef enum {
IS_BYPASS = 1, IS_BYPASS = 1,
...@@ -156,7 +156,7 @@ typedef enum { ...@@ -156,7 +156,7 @@ typedef enum {
} CMND_TYPE_SD; } CMND_TYPE_SD;
#define SIOCGIFBYPASS SIOCDEVPRIVATE+10 #define SIOCGIFBYPASS (SIOCDEVPRIVATE+10)
struct bp_info { struct bp_info {
char prod_name[14]; char prod_name[14];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment