OSDN Git Service

net: hns3: remove rebundant line for hclge_dbg_dump_tm_pg()
authorHao Chen <chenhao288@hisilicon.com>
Fri, 3 Dec 2021 09:20:57 +0000 (17:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Dec 2021 11:00:59 +0000 (11:00 +0000)
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c

index 2557e81..c287be8 100644 (file)
@@ -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;