vDPA/ifcvf: remove duplicated assignment to pointer cfg
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/vdpa/ifcvf/ifcvf_base.c | 1 - 1 file changed, 1 deletion(-)
drivers/vdpa/ifcvf/ifcvf_base.c +0 -1
@@ -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);
Signature · 1 line
2.35.3
Quoted 5 lines · Colin Ian King
The assignment to pointer cfg is duplicated, the second assignment is redundant and can be removed.
Signed-off-by Colin Ian King <[email protected]>
Acked-by Jason Wang <[email protected]>
Quoted 19 lines
--- drivers/vdpa/ifcvf/ifcvf_base.c | 1 - 1 file changed, 1 deletion(-)drivers/vdpa/ifcvf/ifcvf_base.c +0
-2@@ -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); --2.35.3