From nobody Sat Oct 11 04:10:43 2025 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2947E1C07C3; Thu, 12 Jun 2025 02:20:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749694856; cv=none; b=Xrmf6wlmOd8th5sv4pdPmZQOi9QW7D1qXUr49VL6FacuRr4d4h/vvI6ltxyZLQsyEEeLpRqBeAX8QWN/+rAKellzgH1B10jerNv5EbTvQ0HsKBqfiRml6F2v+0s3c365OyRfFgdauJ98t9zhGUqBtdxW1gidxcy1PN94ZMgT4Yw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749694856; c=relaxed/simple; bh=BuNk95BHPv2OoLEPlcpCFaWC6Pouxc5RcUlu/J6TdxU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HyzLHkUJ4g6d3SfrIuEnRs6i/jH97v7cx47R4BHUUyG4Kg6vQ5/p2HNEw+aeaiaGoaSK265BFrMDk6j9YfU0TyHNbpduxyZdDkrkkQu9Ok80hoZPvUn8jSxapCzbLDhrYuiqRV8tt0t0LRVNw1BbMFcq9reuu0ExxLMHdzSjEBo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4bHmP31dDpzRk21; Thu, 12 Jun 2025 10:16:39 +0800 (CST) Received: from kwepemk100013.china.huawei.com (unknown [7.202.194.61]) by mail.maildlp.com (Postfix) with ESMTPS id B8D3C180B64; Thu, 12 Jun 2025 10:20:52 +0800 (CST) Received: from localhost.localdomain (10.90.31.46) by kwepemk100013.china.huawei.com (7.202.194.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 12 Jun 2025 10:20:51 +0800 From: Jijie Shao To: , , , , , CC: , , , , , , , , , Subject: [PATCH net-next 6/8] net: hns3: delete redundant address before the array Date: Thu, 12 Jun 2025 10:13:15 +0800 Message-ID: <20250612021317.1487943-7-shaojijie@huawei.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20250612021317.1487943-1-shaojijie@huawei.com> References: <20250612021317.1487943-1-shaojijie@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: kwepems100001.china.huawei.com (7.221.188.238) To kwepemk100013.china.huawei.com (7.202.194.61) Content-Type: text/plain; charset="utf-8" From: Yonglong Liu Address before the array is redundant, this patch delete it. Signed-off-by: Yonglong Liu Signed-off-by: Jijie Shao --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c b/d= rivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c index c46490693594..21deec217668 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c @@ -2110,7 +2110,7 @@ static int hclge_dbg_dump_mng_table(struct hclge_dev = *hdev, char *buf, int len) for (i =3D 0; i < HCLGE_DBG_MNG_TBL_MAX; i++) { hclge_cmd_setup_basic_desc(&desc, HCLGE_MAC_ETHERTYPE_IDX_RD, true); - req0 =3D (struct hclge_mac_ethertype_idx_rd_cmd *)&desc.data; + req0 =3D (struct hclge_mac_ethertype_idx_rd_cmd *)desc.data; req0->index =3D cpu_to_le16(i); =20 ret =3D hclge_cmd_send(&hdev->hw, &desc, 1); diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/driv= ers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index d35be31442e6..ddd11a575c2a 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -2358,7 +2358,7 @@ static int hclge_common_thrd_config(struct hclge_dev = *hdev, for (i =3D 0; i < 2; i++) { hclge_cmd_setup_basic_desc(&desc[i], HCLGE_OPC_RX_COM_THRD_ALLOC, false); - req =3D (struct hclge_rx_com_thrd *)&desc[i].data; + req =3D (struct hclge_rx_com_thrd *)desc[i].data; =20 /* The first descriptor set the NEXT bit to 1 */ if (i =3D=3D 0) --=20 2.33.0