Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eth: mucse: rnpgbevf: initialize the variable 'advertising'
Fix follow error with clang-19: drivers/net/ethernet/mucse/rnpgbevf/rnpgbevf_ethtool.c:143:3: error: variable 'advertising' is uninitialized when used here [-Werror,-Wuninitialized] 143 | advertising |= ADVERTISED_FIBRE | ADVERTISED_1000baseKX_Full; | ^~~~~~~~~~~ drivers/net/ethernet/mucse/rnpgbevf/rnpgbevf_ethtool.c:131:28: note: initialize the variable 'advertising' to silence this warning 131 | u32 supported, advertising; | ^ | = 0 1 error generated. Signed-off-by: WangYuli <[email protected]>
- Loading branch information