]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
RDMA/hns: remove duplicate assignment to pointer raq
authorColin Ian King <colin.king@canonical.com>
Thu, 28 May 2020 15:04:27 +0000 (16:04 +0100)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 29 May 2020 18:19:57 +0000 (15:19 -0300)
The pointer raq is being assigned twice. Fix this by removing one of the
redundant assignments.

Fixes: 14ba87304bf9 ("RDMA/hns: Remove redundant type cast for general pointers")
Link: https://lore.kernel.org/r/20200528150427.420624-1-colin.king@canonical.com
Addressses-Coverity: ("Evaluation order violation")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c

index 8ff6b922b4d7596b42682ea7b1fa1c0b2432b45f..d02207cd30dfaa624f4d8b6b743432086819cc3e 100644 (file)
@@ -1146,7 +1146,7 @@ static void hns_roce_db_free(struct hns_roce_dev *hr_dev)
 static int hns_roce_raq_init(struct hns_roce_dev *hr_dev)
 {
        struct hns_roce_v1_priv *priv = hr_dev->priv;
-       struct hns_roce_raq_table *raq = raq = &priv->raq_table;
+       struct hns_roce_raq_table *raq = &priv->raq_table;
        struct device *dev = &hr_dev->pdev->dev;
        int raq_shift = 0;
        dma_addr_t addr;