From 5ba66296f7f1ed86d7cdf84ae7d9d7ef4f5d37b1 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Fri, 5 Jun 2020 15:06:31 -0300 Subject: lib: don't set NULL after an XFREE Avoid two assignment operations by just letting XFREE do its thing. Signed-off-by: Rafael Zalamena --- lib/filter_nb.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/filter_nb.c') diff --git a/lib/filter_nb.c b/lib/filter_nb.c index 1daefa8f10..e728eda4f6 100644 --- a/lib/filter_nb.c +++ b/lib/filter_nb.c @@ -180,8 +180,6 @@ lib_access_list_legacy_remark_destroy(struct nb_cb_destroy_args *args) if (acl->remark) XFREE(MTYPE_TMP, acl->remark); - acl->remark = NULL; - return NB_OK; } @@ -825,8 +823,6 @@ static int lib_prefix_list_remark_destroy(struct nb_cb_destroy_args *args) if (pl->desc) XFREE(MTYPE_TMP, pl->desc); - pl->desc = NULL; - return NB_OK; } -- cgit v1.2.3