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 6cf5aeac11..86e5d11506 100644
--- a/drivers/common/sfc_efx/base/efx_np.c
+++ b/drivers/common/sfc_efx/base/efx_np.c
@@ -734,7 +734,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