summaryrefslogtreecommitdiffstats
path: root/cmd
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 /cmd
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 'cmd')
-rw-r--r--cmd/zpios/zpios_main.c2
-rw-r--r--cmd/zpool/zpool_vdev.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/zpios/zpios_main.c b/cmd/zpios/zpios_main.c
index d0e3f7b91..a413453e4 100644
--- a/cmd/zpios/zpios_main.c
+++ b/cmd/zpios/zpios_main.c
@@ -388,7 +388,7 @@ dev_clear(void)
fprintf(stderr, "Ioctl() error %lu / %d: %d\n",
(unsigned long) ZPIOS_CFG, cfg.cfg_cmd, errno);
- lseek(zpiosctl_fd, 0, SEEK_SET);
+ (void) lseek(zpiosctl_fd, 0, SEEK_SET);
return (rc);
}
diff --git a/cmd/zpool/zpool_vdev.c b/cmd/zpool/zpool_vdev.c
index b51b9c9c3..b0db5e873 100644
--- a/cmd/zpool/zpool_vdev.c
+++ b/cmd/zpool/zpool_vdev.c
@@ -735,7 +735,7 @@ make_leaf_vdev(nvlist_t *props, const char *arg, uint64_t is_log)
}
if (ashift > 0)
- nvlist_add_uint64(vdev, ZPOOL_CONFIG_ASHIFT, ashift);
+ (void) nvlist_add_uint64(vdev, ZPOOL_CONFIG_ASHIFT, ashift);
return (vdev);
}