linux/drivers/net/ethernet/intel
Alexander Duyck e357f0aae4 igb: Fix warning pin may be used uninitialized
When building the kernel using the gcc 4.8.3 compiler included in Fedora 20
I was repeatedly seeing the warning:

 drivers/net/ethernet/intel/igb/igb_ptp.c: In function ‘igb_ptp_feature_enable_i210’:
 drivers/net/ethernet/intel/igb/igb_ptp.c:395:21: warning: ‘pin’ may be used uninitialized in this function
 [-Wmaybe-uninitialized]
   tssdp &= ~ts_sdp_en[pin];
                     ^
 drivers/net/ethernet/intel/igb/igb_ptp.c:471:6: note: ‘pin’ was declared here
   int pin;
       ^

To resolve it I am assigning the pin a value of -1 when it is instantiated.

Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2015-03-06 02:47:09 -08:00
..
e1000 net: e1000: support txtd update delay via xmit_more 2015-01-22 18:10:23 -08:00
e1000e e1000e: remove calls to ioremap/unmap for NVM addr 2015-03-06 02:47:08 -08:00
fm10k fm10k: Resolve various spelling errors and checkpatch warnings 2015-03-03 01:07:23 -08:00
i40e i40e: Fix mismatching type for ioremap_len 2015-03-05 22:11:38 -05:00
i40evf i40e/i40evf: Version bump 2015-03-05 08:17:28 -08:00
igb igb: Fix warning pin may be used uninitialized 2015-03-06 02:47:09 -08:00
igbvf igbvf: cleanup msleep() and min/max() usage 2015-02-23 17:11:54 -08:00
ixgb net: rename vlan_tx_* helpers since "tx" is misleading there 2015-01-13 17:51:08 -05:00
ixgbe ethernet: Use eth_<foo>_addr instead of memset 2015-03-03 17:01:36 -05:00
ixgbevf ixgbevf: combine all of the tasks into a single service task 2015-02-05 19:58:45 -08:00
e100.c e100: fix typo in MDI/MDI-X eeprom check in e100_phy_init 2014-12-31 11:55:40 -08:00
Kconfig i40e: Fix dependencies in the i40e driver on configfs 2015-03-03 16:52:41 -05:00
Makefile fm10k: Add skeletal frame for Intel(R) FM10000 Ethernet Switch Host Interface Driver 2014-09-23 03:59:13 -07:00