svn commit: r294358 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Alan Somers
asomers at FreeBSD.org
Tue Jan 19 23:16:25 UTC 2016
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
More information about the svn-src-all
mailing list