[PATCH net-next 3/3] net/mlx5: Replace spaces with tab at the start of a line

2021-04-01 Thread Weihang Li
From: Wenpeng Liang There should be no spaces at the start of the line. Signed-off-by: Wenpeng Liang Signed-off-by: Weihang Li --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core

[PATCH net-next 0/3] net/mlx5: Fix some coding-style issues

2021-04-01 Thread Weihang Li
Just make some cleanups according to the coding style of kernel. Wenpeng Liang (3): net/mlx5: Add a blank line after declarations. net/mlx5: Remove return statement exist at the end of void function net/mlx5: Replace spaces with tab at the start of a line drivers/net/ethernet/mellanox/mlx5

[PATCH net-next 2/3] net/mlx5: Remove return statement exist at the end of void function

2021-04-01 Thread Weihang Li
From: Wenpeng Liang void function return statements are not generally useful. Signed-off-by: Wenpeng Liang Signed-off-by: Weihang Li --- drivers/net/ethernet/mellanox/mlx5/core/lag.c | 2 -- drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c | 1 - drivers/net/ethernet/mellanox/mlx5/core

[PATCH net-next 1/3] net/mlx5: Add a blank line after declarations.

2021-04-01 Thread Weihang Li
From: Wenpeng Liang There should be a blank lines after declarations. Signed-off-by: Wenpeng Liang Signed-off-by: Weihang Li --- drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c| 2 ++ drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c | 1 + 2 files changed, 3 insertions(+) diff

[PATCH net-next 5/7] net: ocelot: fix a trailling format issue with block comments

2021-03-31 Thread Weihang Li
From: Yixing Liu Use a tralling */ on a separate line for block comments. Signed-off-by: Yixing Liu Signed-off-by: Weihang Li --- drivers/net/ethernet/mscc/ocelot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mscc/ocelot.c b/drivers/net

[PATCH net-next 3/7] net: amd8111e: fix inappropriate spaces

2021-03-31 Thread Weihang Li
From: Yixing Liu Delete unncecessary spaces and add some reasonable spaces according to the coding-style of kernel. Signed-off-by: Yixing Liu Signed-off-by: Weihang Li --- drivers/net/ethernet/amd/amd8111e.c | 362 ++-- 1 file changed, 177 insertions(+), 185

[PATCH net-next 4/7] net: amd: correct some format issues

2021-03-31 Thread Weihang Li
From: Yixing Liu There should be a blank line after declarations. Signed-off-by: Yixing Liu Signed-off-by: Weihang Li --- drivers/net/ethernet/amd/hplance.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/amd/hplance.c b/drivers/net/ethernet/amd/hplance.c index

[PATCH net-next 6/7] net: toshiba: fix the trailing format of some block comments

2021-03-31 Thread Weihang Li
From: Yixing Liu Use a trailling */ on a separate line for block comments. Signed-off-by: Yixing Liu Signed-off-by: Weihang Li --- drivers/net/ethernet/toshiba/spider_net.c | 42 --- drivers/net/ethernet/toshiba/tc35815.c| 3 ++- 2 files changed, 30

[PATCH net-next 2/7] net: ena: remove extra words from comments

2021-03-31 Thread Weihang Li
From: Yixing Liu Remove the redundant "for" from the commment. Signed-off-by: Yixing Liu Signed-off-by: Weihang Li --- drivers/net/ethernet/amazon/ena/ena_netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/d

[PATCH net-next 7/7] net: lpc_eth: fix format warnings of block comments

2021-03-31 Thread Weihang Li
From: Yangyang Li Fix the following format warning: 1. Block comments use * on subsequent lines 2. Block comments use a trailing */ on a separate line Signed-off-by: Yangyang Li Signed-off-by: Weihang Li --- drivers/net/ethernet/nxp/lpc_eth.c | 9 ++--- 1 file changed, 6 insertions(+), 3

[PATCH net-next 1/7] net: ena: fix inaccurate print type

2021-03-31 Thread Weihang Li
From: Yixing Liu Use "%u" to replace "hu%". Signed-off-by: Yixing Liu Signed-off-by: Weihang Li --- drivers/net/ethernet/amazon/ena/ena_com.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/amazon/ena/ena_com.c b/drivers/net

[PATCH net-next 0/7] net: fix some coding style issues

2021-03-31 Thread Weihang Li
Do some cleanups according to the coding style of kernel, including wrong print type, redundant and missing spaces and so on. Yangyang Li (1): net: lpc_eth: fix format warnings of block comments Yixing Liu (6): net: ena: fix inaccurate print type net: ena: remove extra words from comments

[PATCH net-next 2/4] net: marvell: Fix the trailing format of some block comments

2021-03-29 Thread Weihang Li
From: Yangyang Li Use a trailing */ on a separate line for block comments. Signed-off-by: Yangyang Li Signed-off-by: Weihang Li --- drivers/net/ethernet/marvell/mv643xx_eth.c | 6 -- drivers/net/ethernet/marvell/mvneta.c | 6 -- drivers/net/ethernet/marvell/sky2.c| 9

[PATCH net-next 3/4] net: marvell: Delete extra spaces

2021-03-29 Thread Weihang Li
From: Yangyang Li Just delete three extra spaces. Signed-off-by: Yangyang Li Signed-off-by: Weihang Li --- drivers/net/ethernet/marvell/mvneta.c | 2 +- drivers/net/ethernet/marvell/skge.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet

[PATCH net-next 4/4] net: marvell: Fix an alignment problem

2021-03-29 Thread Weihang Li
From: Yangyang Li Use tab instead of space to align the code. Signed-off-by: Yangyang Li Signed-off-by: Weihang Li --- drivers/net/ethernet/marvell/skge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/skge.c b/drivers/net/ethernet/marvell

[PATCH net-next 1/4] net: marvell: Delete duplicate word in comments

2021-03-29 Thread Weihang Li
From: Yangyang Li Delete duplicate word in two comments. Signed-off-by: Yangyang Li Signed-off-by: Weihang Li --- drivers/net/ethernet/marvell/mvneta.c | 4 +--- drivers/net/ethernet/marvell/skge.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet

[PATCH net-next 0/4] net: marvell: fix some coding style

2021-03-29 Thread Weihang Li
Do some cleanups according to the coding style of kernel. Yangyang Li (4): net: marvell: Delete duplicate word in comments net: marvell: Fix the trailing format of some block comments net: marvell: Delete extra spaces net: marvell: Fix an alignment problem drivers/net/ethernet/marvell/mv