Print this page
patch cleanup
6659 nvlist_free(NULL) is a no-op
@@ -21,12 +21,10 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/ctfs.h>
#include <sys/contract.h>
#include <string.h>
#include <libnvpair.h>
#include <assert.h>
@@ -465,11 +463,10 @@
errout:
if (event_buffer)
free(event_buffer);
if (info) {
- if (info->nvl)
nvlist_free(info->nvl);
free(info);
}
return (error);
}
@@ -505,11 +502,10 @@
void
ct_event_free(ct_evthdl_t evthdl)
{
struct ctlib_event_info *info = evthdl;
- if (info->nvl)
nvlist_free(info->nvl);
free(info);
}