a call to PCI_COMMAND is used to set master.
However, a call to pci_set_master earlier in function which
does the same thing.
So remove the calls and variable b.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
static bool device_get_pci_info(struct vnt_private *pDevice,
struct pci_dev *pcid)
{
- u8 b;
-
pci_set_master(pcid);
pDevice->memaddr = pci_resource_start(pcid, 0);
pDevice->pcid = pcid;
- pci_read_config_byte(pcid, PCI_COMMAND, &b);
- pci_write_config_byte(pcid, PCI_COMMAND, (b|PCI_COMMAND_MASTER));
-
return true;
}