summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/contract/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/contract/device.c')
-rw-r--r--usr/src/uts/common/contract/device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/src/uts/common/contract/device.c b/usr/src/uts/common/contract/device.c
index 1517bbbe9e..1fc46fab78 100644
--- a/usr/src/uts/common/contract/device.c
+++ b/usr/src/uts/common/contract/device.c
@@ -1923,8 +1923,7 @@ contract_device_publish(dev_info_t *dip, dev_t dev, int spec_type,
mutex_exit(&(DEVI(dip)->devi_ct_lock));
out:
- if (tnvl)
- nvlist_free(tnvl);
+ nvlist_free(tnvl);
if (path)
kmem_free(path, MAXPATHLEN);