Print this page
10102 libnvfru needs smatch fixes

@@ -21,10 +21,12 @@
 
 /*
  * Copyright (c) 2014 Gary Mills
  *
  * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+ *
+ * Copyright (c) 2018, Joyent, Inc.
  */
 
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>

@@ -400,11 +402,11 @@
                 return (-1);
         }
 
         err = convert_fru(hdl, nvlist);
 
-        fru_close_data_source();
+        (void) fru_close_data_source();
 
         (void) pthread_mutex_unlock(&gLock);
 
         return (err);
 }