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)
commit45fc764e3eecba6962b28a49a7c00ee4f5efff43
tree404c3135af4aa772f1794b77c61360f16ff1a7a4
parent6ba312eb1ce696ad8ac8c9d6e9e22663631ac740
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