net: hns3: use macros instead of magic numbers in get_regs functions
driver inclusion category: bugfix bugzilla: NA CVE: NA Number 2 in hclge_get_32_bit_regs() means length of fields that is not data, such as opcode and flag in 32 bits. So as number 1 in hclge_get_64_bit_regs(). This patch change these magic numbers into macros to help understand their intentions. Signed-off-by: Nliweihang <liweihang@huawei.com> Reviewed-by: Nlipeng <lipeng321@huawei.com> Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录