]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: small changes for magic numbers
authorJian Shen <shenjian15@huawei.com>
Fri, 7 Jun 2019 02:03:09 +0000 (10:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Jun 2019 20:20:59 +0000 (13:20 -0700)
commite424b4a1a4bd1e909ad0110823cb103c333c64e4
tree7cd42886943d2b44a3ff9b0b371f195e43ec5202
parent449cef9486388335b70a9b2324214ed32f8139f2
net: hns3: small changes for magic numbers

In order to improve readability, this patch uses macros to
replace some magic numbers, and adds some comments for some
others.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h