[PATCH v3 10/14] common/sfc_efx/base: fix annotation in netport stat describe
Ivan Malov <[email protected]>
| Newsgroups | org.dpdk.dev |
|---|---|
| Message-ID | <[email protected]> |
From: Andy Moreton <[email protected]> Code analysis reported a NULL dereference of the lut parameter. Fix the annotation to show it is not optional (must be non-NULL). Fixes: f2f77453cb9f ("common/sfc_efx/base: fill in software LUT for MAC statistics") Cc: [email protected] Signed-off-by: Andy Moreton <[email protected]> Reviewed-by: Ivan Malov <[email protected]> Reviewed-by: Viacheslav Galaktionov <[email protected]> --- drivers/common/sfc_efx/base/efx_np.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/sfc_efx/base/efx_np.c b/drivers/common/sfc_efx/base/efx_np.c index fd4432a2a4..e7ca6d3302 100644 --- a/drivers/common/sfc_efx/base/efx_np.c +++ b/drivers/common/sfc_efx/base/efx_np.c @@ -733,7 +733,7 @@ static void efx_np_stat_describe( __in uint8_t *hw_entry_buf, __in unsigned int lut_nentries, - __out_ecount_opt(lut_nentries) efx_np_stat_t *lut) + __out_ecount(lut_nentries) efx_np_stat_t *lut) { const efx_np_stat_t *map; efx_mac_stat_t sw_id; -- 2.47.3