mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-02 17:37:17 +00:00
coverity: remove useless check
handler->conf can't be null bc we checked handler->conf->epheemral before calling lxc_destroy_container_on_signal() Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
d7c8805c10
commit
df31363a0f
@ -1309,7 +1309,7 @@ static void lxc_destroy_container_on_signal(struct lxc_handler *handler,
|
||||
bool bret = true;
|
||||
int ret = 0;
|
||||
struct lxc_container *c;
|
||||
if (handler->conf && handler->conf->rootfs.path && handler->conf->rootfs.mount) {
|
||||
if (handler->conf->rootfs.path && handler->conf->rootfs.mount) {
|
||||
bret = do_destroy_container(handler->conf);
|
||||
if (!bret) {
|
||||
ERROR("Error destroying rootfs for %s", name);
|
||||
|
Loading…
Reference in New Issue
Block a user