Re: [dpdk-dev] [PATCH 1/3] net/cxgbe: init data value before reading seeprom

2017-01-26 Thread Ferruh Yigit
On 1/25/2017 12:12 PM, Ferruh Yigit wrote: > On 1/24/2017 8:48 PM, Emmanuel Roullit wrote: >> data value could have been garbage if VPD access timed out for VPD read >> request could not been issued. >> >> Found with clang static analysis: >> drivers/net/cxgbe/base/t4_hw.c:1577:22: >> warning: The

Re: [dpdk-dev] [PATCH 1/3] net/cxgbe: init data value before reading seeprom

2017-01-25 Thread Ferruh Yigit
On 1/24/2017 8:48 PM, Emmanuel Roullit wrote: > data value could have been garbage if VPD access timed out for VPD read > request could not been issued. > > Found with clang static analysis: > drivers/net/cxgbe/base/t4_hw.c:1577:22: > warning: The left operand of '&' is a garbage value > }

[dpdk-dev] [PATCH 1/3] net/cxgbe: init data value before reading seeprom

2017-01-24 Thread Emmanuel Roullit
data value could have been garbage if VPD access timed out for VPD read request could not been issued. Found with clang static analysis: drivers/net/cxgbe/base/t4_hw.c:1577:22: warning: The left operand of '&' is a garbage value } while ((stats_reg & 0x1) && --max_poll);