summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/sunndi.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/os/sunndi.c')
-rw-r--r--usr/src/uts/common/os/sunndi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/src/uts/common/os/sunndi.c b/usr/src/uts/common/os/sunndi.c
index 04a07fde29..93c66fbcf9 100644
--- a/usr/src/uts/common/os/sunndi.c
+++ b/usr/src/uts/common/os/sunndi.c
@@ -420,8 +420,7 @@ ndi_dc_freehdl(struct devctl_iocdata *dcp)
if (dcp->c_unitaddr != NULL)
kmem_free(dcp->c_unitaddr, MAXNAMELEN);
- if (dcp->nvl_user != NULL)
- nvlist_free(dcp->nvl_user);
+ nvlist_free(dcp->nvl_user);
kmem_free(dcp, sizeof (*dcp));
}