Skip to content

Commit 4c26f69

Browse files
pmstillwanguy11
authored andcommitted
ice: reduce scope of variable
The scope of this variable can be reduced so do that. Signed-off-by: Paul M Stillwell Jr <[email protected]> Tested-by: Tony Brelinski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 4fe3622 commit 4c26f69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4234,7 +4234,6 @@ void ice_print_vfs_mdd_events(struct ice_pf *pf)
42344234
*/
42354235
void ice_restore_all_vfs_msi_state(struct pci_dev *pdev)
42364236
{
4237-
struct pci_dev *vfdev;
42384237
u16 vf_id;
42394238
int pos;
42404239

@@ -4243,6 +4242,8 @@ void ice_restore_all_vfs_msi_state(struct pci_dev *pdev)
42434242

42444243
pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_SRIOV);
42454244
if (pos) {
4245+
struct pci_dev *vfdev;
4246+
42464247
pci_read_config_word(pdev, pos + PCI_SRIOV_VF_DID,
42474248
&vf_id);
42484249
vfdev = pci_get_device(pdev->vendor, vf_id, NULL);

0 commit comments

Comments
 (0)