diff options
| author | Alexander Duyck <[email protected]> | 2015-03-06 03:34:09 +0000 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2015-03-06 02:47:09 -0800 |
| commit | e357f0aae447009c053795e26a322fb15d3348a7 (patch) | |
| tree | a66bd83ab9692ef2ebf6e5d2765b5c1308fdb73f /tools/perf/scripts/python/syscall-counts.py | |
| parent | 1103a631a83408733849b47fa2170cda984df2a3 (diff) | |
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 <[email protected]>
Tested-by: Aaron Brown <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions