Commit 2fbedf67 authored by Cruz Julian Bishop's avatar Cruz Julian Bishop Committed by Greg Kroah-Hartman

staging: slicoss: Fix space-related checkpatch.pl warnings

This fixes all instances of
	"Please, no spaces at start of a new line"
	"Please, no spaces before tabs"

Please note that I probably got the warning names wrong,
but they should be close enough for usage here :)

Additional post-commit note: There is one comment on line 230ish in slic.h
that appears to have lost it's formatting. It was fine when I was working
in Geany, but it caught my eye in the below diff. Sorry if it actually happened!
Signed-off-by: default avatarCruz Julian Bishop <cruzjbishop@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 83682cd2
This diff is collapsed.
...@@ -450,7 +450,7 @@ struct slic_regs { ...@@ -450,7 +450,7 @@ struct slic_regs {
u32 pad34; u32 pad34;
#define SLIC_DBAR64 0x0108 #define SLIC_DBAR64 0x0108
u32 slic_cbar64; /* 64 bit Xmt Cmd buf addr regs. */ u32 slic_cbar64; /* 64 bit Xmt Cmd buf addr regs. */
u32 pad35; u32 pad35;
#define SLIC_CBAR64 0x0110 #define SLIC_CBAR64 0x0110
...@@ -478,11 +478,11 @@ struct slic_regs { ...@@ -478,11 +478,11 @@ struct slic_regs {
u32 slic_read_xf_info; /* Read Transformer info */ u32 slic_read_xf_info; /* Read Transformer info */
u32 pad41; u32 pad41;
#define SLIC_READ_XF_INFO 0x0140 #define SLIC_READ_XF_INFO 0x0140
u32 slic_write_xf_info; /* Write Transformer info */ u32 slic_write_xf_info; /* Write Transformer info */
u32 pad42; u32 pad42;
#define SLIC_WRITE_XF_INFO 0x0148 #define SLIC_WRITE_XF_INFO 0x0148
u32 RSVD1; /* TOE Only */ u32 RSVD1; /* TOE Only */
u32 pad43; u32 pad43;
......
...@@ -144,24 +144,24 @@ MODULE_DEVICE_TABLE(pci, slic_pci_tbl); ...@@ -144,24 +144,24 @@ MODULE_DEVICE_TABLE(pci, slic_pci_tbl);
#define SLIC_GET_SLIC_HANDLE(_adapter, _pslic_handle) \ #define SLIC_GET_SLIC_HANDLE(_adapter, _pslic_handle) \
{ \ { \
spin_lock_irqsave(&_adapter->handle_lock.lock, \ spin_lock_irqsave(&_adapter->handle_lock.lock, \
_adapter->handle_lock.flags); \ _adapter->handle_lock.flags); \
_pslic_handle = _adapter->pfree_slic_handles; \ _pslic_handle = _adapter->pfree_slic_handles; \
if (_pslic_handle) { \ if (_pslic_handle) { \
_adapter->pfree_slic_handles = _pslic_handle->next; \ _adapter->pfree_slic_handles = _pslic_handle->next; \
} \ } \
spin_unlock_irqrestore(&_adapter->handle_lock.lock, \ spin_unlock_irqrestore(&_adapter->handle_lock.lock, \
_adapter->handle_lock.flags); \ _adapter->handle_lock.flags); \
} }
#define SLIC_FREE_SLIC_HANDLE(_adapter, _pslic_handle) \ #define SLIC_FREE_SLIC_HANDLE(_adapter, _pslic_handle) \
{ \ { \
_pslic_handle->type = SLIC_HANDLE_FREE; \ _pslic_handle->type = SLIC_HANDLE_FREE; \
spin_lock_irqsave(&_adapter->handle_lock.lock, \ spin_lock_irqsave(&_adapter->handle_lock.lock, \
_adapter->handle_lock.flags); \ _adapter->handle_lock.flags); \
_pslic_handle->next = _adapter->pfree_slic_handles; \ _pslic_handle->next = _adapter->pfree_slic_handles; \
_adapter->pfree_slic_handles = _pslic_handle; \ _adapter->pfree_slic_handles = _pslic_handle; \
spin_unlock_irqrestore(&_adapter->handle_lock.lock, \ spin_unlock_irqrestore(&_adapter->handle_lock.lock, \
_adapter->handle_lock.flags); \ _adapter->handle_lock.flags); \
} }
......
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