On 24/1/2022 5:47 PM, Stephen Hemminger wrote:
Remove redundant NULL pointer checks before free functions
found by nullfree.cocci
Signed-off-by: Stephen Hemminger <step...@networkplumber.org>
---
lib/power/rte_power_empty_poll.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/power/rte_power_empty_poll.c b/lib/power/rte_power_empty_poll.c
index c4b5de9601cf..2261ce7820f6 100644
--- a/lib/power/rte_power_empty_poll.c
+++ b/lib/power/rte_power_empty_poll.c
@@ -457,8 +457,7 @@ rte_power_empty_poll_stat_free(void)
RTE_LOG(INFO, POWER, "Close the Empty Poll\n");
- if (ep_params != NULL)
- rte_free(ep_params);
+ rte_free(ep_params);
}
int
Acked-by: David Hunt <david.h...@intel.com>