net: hns3: refactor two hns3 debugfs functions
authorJie Wang <wangjie125@huawei.com>
Mon, 29 Nov 2021 14:00:20 +0000 (22:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2021 14:26:17 +0000 (14:26 +0000)
commite6fe5e167185b610a948337ab565ed7a7e313f80
tree87119f3633e18d0599f739f8b785080bf33d93db
parente74a726da2c4dcedb8b0631f423d0044c7901a20
net: hns3: refactor two hns3 debugfs functions

Use for statement to optimize some print work of function
hclge_dbg_dump_rst_info() and hclge_dbg_dump_mac_enable_status() to
improve code simplicity.

Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h