From aab83bb83be7342f6cfccaed8d5fe0b2f404855d Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Wed, 24 Feb 2016 11:58:55 -0500 Subject: 6659 nvlist_free(NULL) is a no-op Reviewed by: Toomas Soome Reviewed by: Marcel Telka Approved by: Robert Mustacchi --- usr/src/uts/common/os/contract.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'usr/src/uts/common/os/contract.c') diff --git a/usr/src/uts/common/os/contract.c b/usr/src/uts/common/os/contract.c index f3c888a1db..249066674e 100644 --- a/usr/src/uts/common/os/contract.c +++ b/usr/src/uts/common/os/contract.c @@ -1837,10 +1837,8 @@ cte_rele(ct_kevent_t *e) contract_rele(e->cte_contract); mutex_destroy(&e->cte_lock); - if (e->cte_data) - nvlist_free(e->cte_data); - if (e->cte_gdata) - nvlist_free(e->cte_gdata); + nvlist_free(e->cte_data); + nvlist_free(e->cte_gdata); kmem_free(e, sizeof (ct_kevent_t)); } -- cgit v1.2.3