Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vdpa: remove unused variables 'ifcvf' and 'ifcvf_lm'

drivers/vdpa/ifcvf/ifcvf_main.c:34:24:
warning: variable ‘ifcvf’ set but not used [-Wunused-but-set-variable]
drivers/vdpa/ifcvf/ifcvf_base.c:304:31:
warning: variable ‘ifcvf_lm’ set but not used [-Wunused-but-set-variable]

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20200402024626.32944-1-yuehaibing@huawei.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

YueHaibing and committed by
Michael S. Tsirkin
cf29b1ce e373f3d7

-4
-2
drivers/vdpa/ifcvf/ifcvf_base.c
··· 301 301 302 302 static int ifcvf_hw_enable(struct ifcvf_hw *hw) 303 303 { 304 - struct ifcvf_lm_cfg __iomem *ifcvf_lm; 305 304 struct virtio_pci_common_cfg __iomem *cfg; 306 305 struct ifcvf_adapter *ifcvf; 307 306 u32 i; 308 307 309 - ifcvf_lm = (struct ifcvf_lm_cfg __iomem *)hw->lm_cfg; 310 308 ifcvf = vf_to_adapter(hw); 311 309 cfg = hw->common_cfg; 312 310 ifc_iowrite16(IFCVF_MSI_CONFIG_OFF, &cfg->msix_config);
-2
drivers/vdpa/ifcvf/ifcvf_main.c
··· 31 31 static int ifcvf_start_datapath(void *private) 32 32 { 33 33 struct ifcvf_hw *vf = ifcvf_private_to_vf(private); 34 - struct ifcvf_adapter *ifcvf; 35 34 u8 status; 36 35 int ret; 37 36 38 - ifcvf = vf_to_adapter(vf); 39 37 vf->nr_vring = IFCVF_MAX_QUEUE_PAIRS * 2; 40 38 ret = ifcvf_start_hw(vf); 41 39 if (ret < 0) {