mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
cov: explicitely ignore return value
This commit is contained in:
parent
2b3dcd754f
commit
395ce6c2bb
@ -4968,7 +4968,7 @@ static void *client_thread_main(void *arg_in)
|
|||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
if (adopt_opt && lock_acquire_written)
|
if (adopt_opt && lock_acquire_written)
|
||||||
unlink(adopt_file);
|
(void) unlink(adopt_file);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5740,13 +5740,13 @@ static void adopt_locks(void)
|
|||||||
if (count_start_fail || count_adopt_fail)
|
if (count_start_fail || count_adopt_fail)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
unlink(adopt_file);
|
(void) unlink(adopt_file);
|
||||||
write_adopt_file();
|
write_adopt_file();
|
||||||
log_debug("adopt_locks done");
|
log_debug("adopt_locks done");
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
unlink(adopt_file);
|
(void) unlink(adopt_file);
|
||||||
log_error("adopt_locks failed, reset host");
|
log_error("adopt_locks failed, reset host");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -679,7 +679,7 @@ int device_ids_write(struct cmd_context *cmd)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
unlink(tmppath); /* in case a previous file was left */
|
(void) unlink(tmppath); /* in case a previous file was left */
|
||||||
|
|
||||||
if (!(fp = fopen(tmppath, "w+"))) {
|
if (!(fp = fopen(tmppath, "w+"))) {
|
||||||
log_warn("Cannot open tmp devices_file to write.");
|
log_warn("Cannot open tmp devices_file to write.");
|
||||||
|
@ -1657,7 +1657,7 @@ bool dev_write_bytes(struct device *dev, uint64_t start, size_t len, void *data)
|
|||||||
_scan_dev_close(dev);
|
_scan_dev_close(dev);
|
||||||
|
|
||||||
dev->flags |= DEV_BCACHE_WRITE;
|
dev->flags |= DEV_BCACHE_WRITE;
|
||||||
label_scan_open(dev);
|
(void) label_scan_open(dev); /* checked later */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dev->bcache_di < 0) {
|
if (dev->bcache_di < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user