diff options
author | Hao Chen <chenhao288@hisilicon.com> | 2021-12-03 12:20:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-03 14:00:59 +0300 |
commit | 40975e749daa5b00aa9e560bdcf817702946b696 (patch) | |
tree | 01b00ab5b4ab107e2aba62c7400038f5d2aa2e90 /drivers/net | |
parent | 4e599dddeea443fc27716a794c2684b2980735c8 (diff) | |
download | linux-40975e749daa5b00aa9e560bdcf817702946b696.tar.xz |
net: hns3: remove rebundant line for hclge_dbg_dump_tm_pg()
Return value judgment should follow the function call, so remove line
between them.
Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c index 2557e815cb3d..c287be8bc48d 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c @@ -782,7 +782,6 @@ static int hclge_dbg_dump_tm_pg(struct hclge_dev *hdev, char *buf, int len) data_str = kcalloc(ARRAY_SIZE(tm_pg_items), HCLGE_DBG_DATA_STR_LEN, GFP_KERNEL); - if (!data_str) return -ENOMEM; |