Fixup a few items spotted by a static code checker
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/os/os-solaris.h b/os/os-solaris.h
index 5bf868a..c6a46ee 100644
--- a/os/os-solaris.h
+++ b/os/os-solaris.h
@@ -111,24 +111,16 @@
static inline int fio_cpuset_init(os_cpu_mask_t *mask)
{
- int ret;
-
- if (pset_create(mask) < 0) {
- ret = errno;
+ if (pset_create(mask) < 0)
return -1;
- }
return 0;
}
static inline int fio_cpuset_exit(os_cpu_mask_t *mask)
{
- int ret;
-
- if (pset_destroy(*mask) < 0) {
- ret = errno;
+ if (pset_destroy(*mask) < 0)
return -1;
- }
return 0;
}