[PATCH 0/6] net: moxa: Fix style issues

2017-07-29 Thread SZ Lin
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

[PATCH 5/6] net: moxa: Fix for typo in comment to function moxart_mac_setup_desc_ring()

2017-07-29 Thread SZ Lin
Signed-off-by: SZ Lin <sz@moxa.com> --- drivers/net/ethernet/moxa/moxart_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/ethernet/moxa/moxart_ether.c index 31e179a651ae..2e4effa9fe45 100644 --- a/drive

[PATCH 6/6] net: moxa: Add spaces preferred around that '{+,-}'

2017-07-29 Thread SZ Lin
This patch fixes all checkpatch occurences of "CHECK: spaces preferred around that '{+,-}' (ctx:VxV)" in moxart_ether code. Signed-off-by: SZ Lin <sz@moxa.com> --- drivers/net/ethernet/moxa/moxart_ether.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --g

[PATCH 3/6] net: moxa: Fix comparison to NULL could be written with !

2017-07-29 Thread SZ Lin
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 <sz@moxa.com> --- drivers/net/ethernet/moxa/moxart_ether.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH 4/6] net: moxa: Remove extra space after a cast

2017-07-29 Thread SZ Lin
No space is necessary after a cast This warning is found using checkpatch.pl Signed-off-by: SZ Lin <sz@moxa.com> --- drivers/net/ethernet/moxa/moxart_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/et

[PATCH 2/6] net: moxa: Prefer 'unsigned int' to bare use of 'unsigned'

2017-07-29 Thread SZ Lin
Use 'unsigned int' instead of 'unsigned' This warning is found using checkpatch.pl Signed-off-by: SZ Lin <sz@moxa.com> --- drivers/net/ethernet/moxa/moxart_ether.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drive

[PATCH 1/6] net: moxa: Remove braces from single-line body

2017-07-29 Thread SZ Lin
Remove unnecessary braces from single-line if statement This warning is found using checkpatch.pl Signed-off-by: SZ Lin <sz@moxa.com> --- drivers/net/ethernet/moxa/moxart_ether.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/moxa/moxart_ethe