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)
commit6125b52d2641497228e806c60b906769ab4b2c19
tree43e81ccccd15183317ee69ea5518d3f90ede2b55
parent6f92bfd70a8ae545bc08941baa55316d8bfba514
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