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/cmd/picl/plugins/common/devtree/picldevtree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr/src/cmd/picl/plugins/common/devtree/picldevtree.c') diff --git a/usr/src/cmd/picl/plugins/common/devtree/picldevtree.c b/usr/src/cmd/picl/plugins/common/devtree/picldevtree.c index 2c439ed505..3a0327af3f 100644 --- a/usr/src/cmd/picl/plugins/common/devtree/picldevtree.c +++ b/usr/src/cmd/picl/plugins/common/devtree/picldevtree.c @@ -3631,8 +3631,7 @@ picldevtree_evhandler(const char *ename, const void *earg, size_t size, nvlist_lookup_string(nvlp, PICLEVENTARG_DEVFS_PATH, &devfs_path) || strlen(devfs_path) > (PATH_MAX - sizeof (PLATFORM_PATH))) { syslog(LOG_INFO, PICL_EVENT_DROPPED, ename); - if (nvlp) - nvlist_free(nvlp); + nvlist_free(nvlp); return; } -- cgit v1.2.3