From: Malcolm Priestley Date: Sat, 12 Sep 2015 18:10:35 +0000 (+0100) Subject: staging: vt6655: device_get_pci_info remove variable cis_addr. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ef1571b13859ce56bf779ddaf3b7be44eacc5d7;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git staging: vt6655: device_get_pci_info remove variable cis_addr. cis_addr is never used remove its call to pci_resource_start. Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 1e660ccf200f..17fa6aa30eae 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -434,15 +434,12 @@ static bool device_get_pci_info(struct vnt_private *pDevice, struct pci_dev *pcid) { u8 b; - unsigned int cis_addr; pci_set_master(pcid); pDevice->memaddr = pci_resource_start(pcid, 0); pDevice->ioaddr = pci_resource_start(pcid, 1); - cis_addr = pci_resource_start(pcid, 2); - pDevice->pcid = pcid; pci_read_config_byte(pcid, PCI_COMMAND, &b);