From: Jean Sacren Date: Sat, 19 Sep 2015 11:08:45 +0000 (-0600) Subject: i40e: declare rather than initialize int object X-Git-Tag: MMI-PSA29.97-13-9~9125^2~101^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6f66a484f1ff644b4600368fe3091e31b65d3c50;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Jean Sacren Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index 96b9385be469..f0ba384a0291 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c @@ -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;