]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: normalize two different loop
authorDaode Huang <huangdaode@hisilicon.com>
Fri, 1 Jul 2016 09:34:10 +0000 (17:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2016 20:56:52 +0000 (16:56 -0400)
commitb7511a75c7148b0391b8f440f8bcf4bc4217b3d1
tree404c3135af4aa772f1794b77c61360f16ff1a7a4
parente5ffc16ce2a39dddd2d7faef1b247af1e04a3f84
net: hns: normalize two different loop

There are two approaches to assign data, one does 2 loops, another
does 1 loop. This patch normalize the different methods to 1 loop.

Signed-off-by: Daode Huang <huangdaode@hisilicon.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c