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 <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7a95f96108
commit
2ef1571b13
@ -434,15 +434,12 @@ static bool device_get_pci_info(struct vnt_private *pDevice,
|
|||||||
struct pci_dev *pcid)
|
struct pci_dev *pcid)
|
||||||
{
|
{
|
||||||
u8 b;
|
u8 b;
|
||||||
unsigned int cis_addr;
|
|
||||||
|
|
||||||
pci_set_master(pcid);
|
pci_set_master(pcid);
|
||||||
|
|
||||||
pDevice->memaddr = pci_resource_start(pcid, 0);
|
pDevice->memaddr = pci_resource_start(pcid, 0);
|
||||||
pDevice->ioaddr = pci_resource_start(pcid, 1);
|
pDevice->ioaddr = pci_resource_start(pcid, 1);
|
||||||
|
|
||||||
cis_addr = pci_resource_start(pcid, 2);
|
|
||||||
|
|
||||||
pDevice->pcid = pcid;
|
pDevice->pcid = pcid;
|
||||||
|
|
||||||
pci_read_config_byte(pcid, PCI_COMMAND, &b);
|
pci_read_config_byte(pcid, PCI_COMMAND, &b);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user