-
- if (src_wim->hdr.boot_idx == 0) {
- ERROR("Cannot specify `boot' flag "
- "when exporting multiple "
- "images from a WIM with no "
- "bootable images!\n");
- return WIMLIB_ERR_INVALID_PARAM;
- } else {
- boot_idx = src_wim->hdr.boot_idx;
- }
+ ERROR("Cannot specify `boot' flag when "
+ "exporting multiple images from a WIM "
+ "with no bootable images!\n");
+ return WIMLIB_ERR_INVALID_PARAM;