summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-12-18 18:42:29 +0000
committerRichard Lowe <richlowe@richlowe.net>2019-02-01 19:02:12 +0000
commit29c3ebdbcfe9e0ec2a1d2e45961c53e573b9d3ab (patch)
tree5538266551ba86bcd406f2cfc35bb20fad6d9cb3 /usr/src
parentf6b3f249ec2ef9f94d38d7a7c1b4fcbe2e891933 (diff)
downloadillumos-joyent-29c3ebdbcfe9e0ec2a1d2e45961c53e573b9d3ab.tar.gz
10102 libnvfru needs smatch fixes
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/lib/libfru/libnvfru/nvfru.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/lib/libfru/libnvfru/nvfru.c b/usr/src/lib/libfru/libnvfru/nvfru.c
index b5ed00ae4a..601a721d1a 100644
--- a/usr/src/lib/libfru/libnvfru/nvfru.c
+++ b/usr/src/lib/libfru/libnvfru/nvfru.c
@@ -23,6 +23,8 @@
* 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>
@@ -402,7 +404,7 @@ rawfru_to_nvlist(uint8_t *buffer, size_t bufsize, char *cont_type,
err = convert_fru(hdl, nvlist);
- fru_close_data_source();
+ (void) fru_close_data_source();
(void) pthread_mutex_unlock(&gLock);