From: Hao Chen Date: Fri, 3 Dec 2021 09:20:57 +0000 (+0800) Subject: net: hns3: remove rebundant line for hclge_dbg_dump_tm_pg() X-Git-Tag: v6.1-rc5~2306^2~265^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40975e749daa5b00aa9e560bdcf817702946b696;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Guangbin Huang Signed-off-by: David S. Miller --- 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;