Commit 4c26f69d authored by Paul M Stillwell Jr's avatar Paul M Stillwell Jr Committed by Tony Nguyen

ice: reduce scope of variable

The scope of this variable can be reduced so do that.
Signed-off-by: default avatarPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Tested-by: default avatarTony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 4fe36226
...@@ -4234,7 +4234,6 @@ void ice_print_vfs_mdd_events(struct ice_pf *pf) ...@@ -4234,7 +4234,6 @@ void ice_print_vfs_mdd_events(struct ice_pf *pf)
*/ */
void ice_restore_all_vfs_msi_state(struct pci_dev *pdev) void ice_restore_all_vfs_msi_state(struct pci_dev *pdev)
{ {
struct pci_dev *vfdev;
u16 vf_id; u16 vf_id;
int pos; int pos;
...@@ -4243,6 +4242,8 @@ void ice_restore_all_vfs_msi_state(struct pci_dev *pdev) ...@@ -4243,6 +4242,8 @@ void ice_restore_all_vfs_msi_state(struct pci_dev *pdev)
pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_SRIOV); pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_SRIOV);
if (pos) { if (pos) {
struct pci_dev *vfdev;
pci_read_config_word(pdev, pos + PCI_SRIOV_VF_DID, pci_read_config_word(pdev, pos + PCI_SRIOV_VF_DID,
&vf_id); &vf_id);
vfdev = pci_get_device(pdev->vendor, vf_id, NULL); vfdev = pci_get_device(pdev->vendor, vf_id, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment