diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-07-04 20:04:56 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-08-11 04:26:07 -0400 |
commit | 994cea53183c211f218d5dbe14ab634f5762f068 (patch) | |
tree | 2d405210d0d8c02c2186438431f2e0cb439ec55b /drivers/vdpa/ifcvf | |
parent | 6e33fa094f1f5a96140cc2439b17f4f3ef9e4a9d (diff) | |
download | lwn-994cea53183c211f218d5dbe14ab634f5762f068.tar.gz lwn-994cea53183c211f218d5dbe14ab634f5762f068.zip |
vDPA/ifcvf: remove duplicated assignment to pointer cfg
The assignment to pointer cfg is duplicated, the second assignment
is redundant and can be removed.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Message-Id: <20220704190456.593464-1-colin.i.king@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'drivers/vdpa/ifcvf')
-rw-r--r-- | drivers/vdpa/ifcvf/ifcvf_base.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/vdpa/ifcvf/ifcvf_base.c b/drivers/vdpa/ifcvf/ifcvf_base.c index 48c4dadb0c7c..47b94091733c 100644 --- a/drivers/vdpa/ifcvf/ifcvf_base.c +++ b/drivers/vdpa/ifcvf/ifcvf_base.c @@ -29,7 +29,6 @@ u16 ifcvf_set_config_vector(struct ifcvf_hw *hw, int vector) { struct virtio_pci_common_cfg __iomem *cfg = hw->common_cfg; - cfg = hw->common_cfg; vp_iowrite16(vector, &cfg->msix_config); return vp_ioread16(&cfg->msix_config); |