ext_config_image don't need judge wheather be null

This commit is contained in:
wei Ding 2020-01-08 16:31:54 +08:00
parent 96f725320c
commit 01fc9ba5e3

View File

@ -246,11 +246,6 @@ static struct bim *bim_get(const char *image_type, const char *image_name, const
}
if (ext_config_image != NULL) {
bim->ext_config_image = util_strdup_s(ext_config_image);
if (bim->ext_config_image == NULL) {
lcrd_append_error_message("Failed to dup external config image %s", bim->ext_config_image);
bim_put(bim);
return NULL;
}
}
if (container_id != NULL) {
bim->container_id = util_strdup_s(container_id);