summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorluozhengzheng <[email protected]>2016-10-03 02:24:54 +0800
committerBrian Behlendorf <[email protected]>2016-10-02 11:24:54 -0700
commitaecdc70604df56d010f99f3ba1c0780d242ac357 (patch)
treeaa73b22fdd39e18b5a930ec3302582e0d63f4802 /module
parent0ca5261be44abd9f6587792df1dc0c8ff73d2f7c (diff)
Fix coverity defects: CID 147448, 147449, 147450, 147453, 147454
coverity scan CID:147448,type: unchecked return value coverity scan CID:147449,type: unchecked return value coverity scan CID:147450,type: unchecked return value coverity scan CID:147453,type: unchecked return value coverity scan CID:147454,type: unchecked return value Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: luozhengzheng <[email protected]> Closes #5206
Diffstat (limited to 'module')
-rw-r--r--module/zfs/fm.c2
-rw-r--r--module/zfs/zfs_znode.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/fm.c b/module/zfs/fm.c
index 2a425a740..a1069d140 100644
--- a/module/zfs/fm.c
+++ b/module/zfs/fm.c
@@ -652,7 +652,7 @@ zfs_zevent_next(zfs_zevent_t *ze, nvlist_t **event, uint64_t *event_size,
ze->ze_zevent = ev;
list_insert_head(&ev->ev_ze_list, ze);
- nvlist_dup(ev->ev_nvl, event, KM_SLEEP);
+ (void) nvlist_dup(ev->ev_nvl, event, KM_SLEEP);
*dropped = ze->ze_dropped;
ze->ze_dropped = 0;
out:
diff --git a/module/zfs/zfs_znode.c b/module/zfs/zfs_znode.c
index 12dada4fc..647ce48dc 100644
--- a/module/zfs/zfs_znode.c
+++ b/module/zfs/zfs_znode.c
@@ -456,7 +456,7 @@ zfs_inode_set_ops(zfs_sb_t *zsb, struct inode *ip)
*/
case S_IFCHR:
case S_IFBLK:
- sa_lookup(ITOZ(ip)->z_sa_hdl, SA_ZPL_RDEV(zsb), &rdev,
+ (void) sa_lookup(ITOZ(ip)->z_sa_hdl, SA_ZPL_RDEV(zsb), &rdev,
sizeof (rdev));
/*FALLTHROUGH*/
case S_IFIFO: