diff options
| author | 2022-02-14 07:40:43 -0800 | |
|---|---|---|
| committer | 2022-02-18 13:28:39 -0800 | |
| commit | 5950bdc88dd1d158f2845fdff8fb1de86476806c (patch) | |
| tree | 3c836646eb2ee0634a4f52e1eb0f78b08db1c2ce /Documentation/blockdev/git:/ssh:/git@git.zx2c4.com | |
| parent | ice: check the return of ice_ptp_gettimex64 (diff) | |
| download | linux-dev-5950bdc88dd1d158f2845fdff8fb1de86476806c.tar.xz linux-dev-5950bdc88dd1d158f2845fdff8fb1de86476806c.zip | |
ice: initialize local variable 'tlv'
Clang static analysis reports this issues
ice_common.c:5008:21: warning: The left expression of the compound
assignment is an uninitialized value. The computed value will
also be garbage
ldo->phy_type_low |= ((u64)buf << (i * 16));
~~~~~~~~~~~~~~~~~ ^
When called from ice_cfg_phy_fec() ldo is the uninitialized local
variable tlv. So initialize.
Fixes: ea78ce4dab05 ("ice: add link lenient and default override support")
Signed-off-by: Tom Rix <trix@redhat.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'Documentation/blockdev/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
