]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: modify base parameter of kstrtouint in hclge_dbg_dump_tm_map
authorHuazhong Tan <tanhuazhong@huawei.com>
Wed, 28 Aug 2019 14:23:07 +0000 (22:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Aug 2019 23:57:43 +0000 (16:57 -0700)
commit07c2031f7c8a3406a4eafad09f3b4e1a7aed9393
tree43e81ccccd15183317ee69ea5518d3f90ede2b55
parent8f6eb1906e456b6c294dabcf35adc9ec722b1ea4
net: hns3: modify base parameter of kstrtouint in hclge_dbg_dump_tm_map

This patch replaces kstrtouint()'s patameter base with 0 in the
hclge_dbg_dump_tm_mac(), which makes it more flexible. Also
uses a macro to replace string "dump tm map", since it has been
used multiple times.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c