Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jan 2016 23:16:24 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r294358 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201601192316.u0JNGOs4075075@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Tue Jan 19 23:16:24 2016
New Revision: 294358
URL: https://svnweb.freebsd.org/changeset/base/294358

Log:
  Quell harmless CID about unchecked return value in nvlist_get_guids.
  
  The return value doesn't need to be checked, because nvlist_get_guid's
  callers check the returned values of the guids.
  
  Coverity CID:	1341869
  MFC after:	1 week
  X-MFC-With:	292066
  Sponsored by:	Spectra Logic Corp

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c	Tue Jan 19 22:42:16 2016	(r294357)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c	Tue Jan 19 23:16:24 2016	(r294358)
@@ -291,8 +291,8 @@ static void
 nvlist_get_guids(nvlist_t *list, uint64_t *pguid, uint64_t *vguid)
 {
 
-	nvlist_lookup_uint64(list, ZPOOL_CONFIG_GUID, vguid);
-	nvlist_lookup_uint64(list, ZPOOL_CONFIG_POOL_GUID, pguid);
+	(void) nvlist_lookup_uint64(list, ZPOOL_CONFIG_GUID, vguid);
+	(void) nvlist_lookup_uint64(list, ZPOOL_CONFIG_POOL_GUID, pguid);
 }
 
 static int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601192316.u0JNGOs4075075>