Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/softnic: fix maybe-uninitialized warning
In pmd_mtr_stats_read() 'struct rte_mtr_stats s' is initialized during the call to mtr_stats_convert() but on some systems it is triggering a compiler warning. e.g. drivers/net/softnic/rte_eth_softnic_meter.c:916:25: error: 's' may be used uninitialized [-Werror=maybe-uninitialized] Initialize the struct in pmd_mtr_stats_read() to avoid warnings. Reported-by: Ali Alnubani <[email protected]> Signed-off-by: Kevin Traynor <[email protected]>
- Loading branch information