summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2016-01-19 23:16:24 +0000
committerasomers <asomers@FreeBSD.org>2016-01-19 23:16:24 +0000
commita7292678aacf57078fdb072c658bd46e47b162af (patch)
tree9e2c1a182182a15efc0c8231f2d0f72d0f89bbf6
parent3bda4bd41de2eb4d2c9880b4b393ca4261d0d7e5 (diff)
downloadFreeBSD-src-a7292678aacf57078fdb072c658bd46e47b162af.zip
FreeBSD-src-a7292678aacf57078fdb072c658bd46e47b162af.tar.gz
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
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
index b2dae24..85b31f0 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
@@ -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
OpenPOWER on IntegriCloud