]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
RDMA/qedr: Remove a duplicate assignment in irdma_query_ah()
authorMinjie Du <duminjie@vivo.com>
Thu, 6 Jul 2023 02:27:03 +0000 (10:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:25 +0000 (09:48 +0200)
[ Upstream commit 65e02e840847158c7ee48ca8e6e91062b0f78662 ]

Delete a duplicate statement from this function implementation.

Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")
Signed-off-by: Minjie Du <duminjie@vivo.com>
Acked-by: Alok Prasad <palok@marvell.com>
Link: https://lore.kernel.org/r/20230706022704.1260-1-duminjie@vivo.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/irdma/verbs.c

index eaa12c124598285beaa891761d8a2ec6aaa17ada..8f9378767f307c566d530b7ffa6256057d9918a8 100644 (file)
@@ -4424,7 +4424,6 @@ static int irdma_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr)
                ah_attr->grh.traffic_class = ah->sc_ah.ah_info.tc_tos;
                ah_attr->grh.hop_limit = ah->sc_ah.ah_info.hop_ttl;
                ah_attr->grh.sgid_index = ah->sgid_index;
-               ah_attr->grh.sgid_index = ah->sgid_index;
                memcpy(&ah_attr->grh.dgid, &ah->dgid,
                       sizeof(ah_attr->grh.dgid));
        }