i40e: declare rather than initialize int object
authorJean Sacren <sakiwit@gmail.com>
Sat, 19 Sep 2015 11:08:45 +0000 (05:08 -0600)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 19 Oct 2015 22:36:11 +0000 (15:36 -0700)
'err' would be overwritten immediately, so we should declare it only
rather than initialize it to zero.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c

index 96b9385be4697cc5a8692549d100b1746d6f3a82..f0ba384a0291bb2a88cee8497b309740ad9edc4f 100644 (file)
@@ -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;