Print this page
patch cleanup
6659 nvlist_free(NULL) is a no-op
*** 21,32 ****
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/ddi.h>
#include <sys/sunddi.h>
#include <sys/sunndi.h>
#include <sys/ddi_impldefs.h>
#include <sys/ddi_implfuncs.h>
--- 21,30 ----
*** 308,318 ****
*ret_nvl = nvl;
STORE_DBG((CE_NOTE, "packed retire list into nvlist"));
return (DDI_SUCCESS);
error:
- if (line_nvl)
nvlist_free(line_nvl);
ASSERT(nvl);
nvlist_free(nvl);
return (DDI_FAILURE);
}
--- 306,315 ----