Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f66a484 authored by Jean Sacren's avatar Jean Sacren Committed by Jeff Kirsher
Browse files

i40e: declare rather than initialize int object



'err' would be overwritten immediately, so we should declare it only
rather than initialize it to zero.

Signed-off-by: default avatarJean Sacren <sakiwit@gmail.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 2bc11c63
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10159,7 +10159,7 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
	static u16 pfs_found;
	u16 wol_nvm_bits;
	u16 link_status;
	int err = 0;
	int err;
	u32 len;
	u32 i;