]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: hns3: delete redundant address before the array
authorYonglong Liu <liuyonglong@huawei.com>
Mon, 23 Jun 2025 04:00:41 +0000 (12:00 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 25 Jun 2025 00:09:22 +0000 (17:09 -0700)
Address before the array is redundant, this patch delete it.

Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250623040043.857782-6-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index c46490693594652781f7458ee079d5ae54592600..21deec217668e4b47a53e8b1519a9b510b06e5c3 100644 (file)
@@ -2110,7 +2110,7 @@ static int hclge_dbg_dump_mng_table(struct hclge_dev *hdev, char *buf, int len)
        for (i = 0; i < HCLGE_DBG_MNG_TBL_MAX; i++) {
                hclge_cmd_setup_basic_desc(&desc, HCLGE_MAC_ETHERTYPE_IDX_RD,
                                           true);
-               req0 = (struct hclge_mac_ethertype_idx_rd_cmd *)&desc.data;
+               req0 = (struct hclge_mac_ethertype_idx_rd_cmd *)desc.data;
                req0->index = cpu_to_le16(i);
 
                ret = hclge_cmd_send(&hdev->hw, &desc, 1);
index 205cdbb817434f3f504236fbc6c5836502ae819b..1282e4f75db9d4fc93cc0f65e808cf0d3b99ca76 100644 (file)
@@ -2358,7 +2358,7 @@ static int hclge_common_thrd_config(struct hclge_dev *hdev,
        for (i = 0; i < 2; i++) {
                hclge_cmd_setup_basic_desc(&desc[i],
                                           HCLGE_OPC_RX_COM_THRD_ALLOC, false);
-               req = (struct hclge_rx_com_thrd *)&desc[i].data;
+               req = (struct hclge_rx_com_thrd *)desc[i].data;
 
                /* The first descriptor set the NEXT bit to 1 */
                if (i == 0)