From: Qianqian Xie <redacted>
There is some inappropriate application of values in hns driver,
such as cycle index, returned value, format string, useless citation.
This patch set will solve it.
---
change log:
PATCH v2:
- This patchset fixes the comments provided by Andy Shevchenko <Andy Shevchenko>
PATCH v1:
- first submit
Qianqian Xie (4):
net: hns: fix a bug for cycle index
net: hns: bug fix for format string
net: hns: bug fix for return values
net: hns: remove useless head=ring->next_to_clean
drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 3 ++-
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 12 ++++++------
drivers/net/ethernet/hisilicon/hns/hns_enet.c | 5 +----
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 4 ++--
4 files changed, 11 insertions(+), 13 deletions(-)
--
1.9.1
From: Qianqian Xie <redacted>
The return values in the first two functions mdiobus_write()
are ignored. The patch will fix it.
Signed-off-by: Qianqian Xie <redacted>
---
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Qianqian Xie <redacted>
There is not a format string in function snprinf().
This patch will fix it.
Signed-off-by: Qianqian Xie <redacted>
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: Qianqian Xie <redacted>
The cycle index should be varied while the variable j is a fixed value.
The patch will fix this bug.
Signed-off-by: Qianqian Xie <redacted>
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
From: Qianqian Xie <redacted>
The variable head in hns_nic_tx_fini_pro has read a value,
but the value is not used. The patch will solve it.
The bug-fixed comment is for the function pointer
ring_data->fini_process,that is called in function
hns_nic_common_poll.The comment should not be there, so remove it.
Signed-off-by: Qianqian Xie <redacted>
---
change log:
PATCH v2:
- This patchset fixes the comments provided by Andy Shevchenko <Andy Shevchenko>
PATCH v1:
- first submit
---
drivers/net/ethernet/hisilicon/hns/hns_enet.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
From: David Miller <davem@davemloft.net> Date: 2016-03-11 16:56:42
This does not work.
I will not allow two sets of people sending me patches in parallel to the
same driver at the same time.
Have one person manage the maintainence of this driver and consolidate the
patch submissions to me.
Thanks.
We will appoint Daode Huang [off-list ref] to send these patchs.
Thanks.
在 2016/3/12 0:56, David Miller 写道:
This does not work.
I will not allow two sets of people sending me patches in parallel to the
same driver at the same time.
Have one person manage the maintainence of this driver and consolidate the
patch submissions to me.
Thanks.
.
This does not work.
I will not allow two sets of people sending me patches in parallel to the
same driver at the same time.
Have one person manage the maintainence of this driver and consolidate the
patch submissions to me.
Thanks.
.
Hi David,
Thanks for your reply. we will upstream the patches one by one. And we will ask Daode Huang to help us
to upsream.
MBR, Kejian