This patch set fixs the WARNINGs found by the checkpatch.pl tool
SZ Lin (6):
net: moxa: Remove braces from single-line body
net: moxa: Prefer 'unsigned int' to bare use of 'unsigned'
net: moxa: Fix comparison to NULL could be written with !
net: moxa: Remove extra space after a cast
net: moxa: Fix for typo in comment to function
moxart_mac_setup_desc_ring()
net: moxa: Add spaces preferred around that '{+,-}'
drivers/net/ethernet/moxa/moxart_ether.c | 15 +++++++--------
drivers/net/ethernet/moxa/moxart_ether.h | 8 ++++----
2 files changed, 11 insertions(+), 12 deletions(-)
--
2.13.3
No space is necessary after a cast
This warning is found using checkpatch.pl
Signed-off-by: SZ Lin <redacted>
---
drivers/net/ethernet/moxa/moxart_ether.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Fixed coding style for null comparisons in moxart_ether driver
to be more consistent with the rest of the kernel coding style
Signed-off-by: SZ Lin <redacted>
---
drivers/net/ethernet/moxa/moxart_ether.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Use 'unsigned int' instead of 'unsigned'
This warning is found using checkpatch.pl
Signed-off-by: SZ Lin <redacted>
---
drivers/net/ethernet/moxa/moxart_ether.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Remove unnecessary braces from single-line if statement
This warning is found using checkpatch.pl
Signed-off-by: SZ Lin <redacted>
---
drivers/net/ethernet/moxa/moxart_ether.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
This patch fixes all checkpatch occurences of
"CHECK: spaces preferred around that '{+,-}' (ctx:VxV)"
in moxart_ether code.
Signed-off-by: SZ Lin <redacted>
---
drivers/net/ethernet/moxa/moxart_ether.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
@@ -161,7 +161,7 @@ static void moxart_mac_setup_desc_ring(struct net_device *ndev)priv->rx_head=0;-/* reset the MAC controller TX/RX desciptor base address */+/* reset the MAC controller TX/RX descriptor base address */writel(priv->tx_base,priv->base+REG_TXR_BASE_ADDRESS);writel(priv->rx_base,priv->base+REG_RXR_BASE_ADDRESS);}