From dfe459398f8098e819ba993782b2c63ef4c339cf Mon Sep 17 00:00:00 2001 From: Amarjargal Gundjalam Date: Sun, 25 Oct 2015 07:48:54 -0700 Subject: staging: slicoss: Removes multiple blank lines This patch fixes the checkpatch.pl check: CHECK: Please don't use multiple blank lines Signed-off-by: Amarjargal Gundjalam Signed-off-by: Greg Kroah-Hartman --- drivers/staging/slicoss/slic.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/staging/slicoss/slic.h') diff --git a/drivers/staging/slicoss/slic.h b/drivers/staging/slicoss/slic.h index 00b8af63e7ff..6ccd1d5394e9 100644 --- a/drivers/staging/slicoss/slic.h +++ b/drivers/staging/slicoss/slic.h @@ -166,7 +166,6 @@ struct slic_cmdqueue { #define SLIC_MAX_CARDS 32 #define SLIC_MAX_PORTS 4 /* Max # of ports per card */ - struct mcast_address { unsigned char address[6]; struct mcast_address *next; @@ -485,7 +484,6 @@ struct adapter { struct slicnet_stats slic_stats; }; - #define UPDATE_STATS(largestat, newstat, oldstat) \ { \ if ((newstat) < (oldstat)) \ -- cgit v1.2.3 From 0d45ffcd648971ab11b14120e43723757b17a137 Mon Sep 17 00:00:00 2001 From: Amarjargal Gundjalam Date: Sun, 25 Oct 2015 07:48:56 -0700 Subject: staging: slicoss: Adds space around operators MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch fixes the checkpatch.pl check: CHECK: spaces preferred around that ‘’ Signed-off-by: Amarjargal Gundjalam Signed-off-by: Greg Kroah-Hartman --- drivers/staging/slicoss/slic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/staging/slicoss/slic.h') diff --git a/drivers/staging/slicoss/slic.h b/drivers/staging/slicoss/slic.h index 6ccd1d5394e9..92c6862b503d 100644 --- a/drivers/staging/slicoss/slic.h +++ b/drivers/staging/slicoss/slic.h @@ -446,7 +446,7 @@ struct adapter { * SLIC Handles */ /* Object handles*/ - struct slic_handle slic_handles[SLIC_CMDQ_MAXCMDS+1]; + struct slic_handle slic_handles[SLIC_CMDQ_MAXCMDS + 1]; /* Free object handles*/ struct slic_handle *pfree_slic_handles; /* Object handle list lock*/ @@ -512,6 +512,6 @@ struct adapter { #define FLUSH true #define DONT_FLUSH false -#define SIOCSLICSETINTAGG (SIOCDEVPRIVATE+10) +#define SIOCSLICSETINTAGG (SIOCDEVPRIVATE + 10) #endif /* __SLIC_DRIVER_H__ */ -- cgit v1.2.3 From f773a8347962e1aecac8aa32ca54b3fcff941b79 Mon Sep 17 00:00:00 2001 From: Amarjargal Gundjalam Date: Sun, 25 Oct 2015 07:48:57 -0700 Subject: staging: slicoss: Fixes block comment style This patch fixes the checkpatch.pl warnings: WARNING: Block comments use * on subsequent lines WARNING: Block comments use a trailing */ on a separate line Signed-off-by: Amarjargal Gundjalam Signed-off-by: Greg Kroah-Hartman --- drivers/staging/slicoss/slic.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'drivers/staging/slicoss/slic.h') diff --git a/drivers/staging/slicoss/slic.h b/drivers/staging/slicoss/slic.h index 92c6862b503d..c95b3abad646 100644 --- a/drivers/staging/slicoss/slic.h +++ b/drivers/staging/slicoss/slic.h @@ -93,10 +93,10 @@ struct slic_rcvbuf_info { u32 lastid; }; /* - SLIC Handle structure. Used to restrict handle values to - 32 bits by using an index rather than an address. - Simplifies ucode in 64-bit systems -*/ + * SLIC Handle structure. Used to restrict handle values to + * 32 bits by using an index rather than an address. + * Simplifies ucode in 64-bit systems + */ struct slic_handle_word { union { struct { @@ -333,10 +333,11 @@ struct physcard { struct physcard *next; uint adapters_allocd; -/* the following is not currently needed - u32 bridge_busnum; - u32 bridge_cfg[NUM_CFG_SPACES][NUM_CFG_REG_ULONGS]; -*/ +/* + * the following is not currently needed + * u32 bridge_busnum; + * u32 bridge_cfg[NUM_CFG_SPACES][NUM_CFG_REG_ULONGS]; + */ }; struct base_driver { -- cgit v1.2.3