]> wimlib.net Git - wimlib/blobdiff - src/export_image.c
Minor cleanups
[wimlib] / src / export_image.c
index a01928012bb1c92494eb74a70081408a481564cc..6d38855db04e9d8c4b9d403e56e9cf05b6b89bbf 100644 (file)
@@ -247,7 +247,8 @@ WIMLIBAPI int wimlib_export_image(WIMStruct *src_wim,
                goto out_free_ltes;
 
        ret = xml_export_image(src_wim->wim_info, src_image,
-                              &dest_wim->wim_info, dest_name, dest_description);
+                              &dest_wim->wim_info, dest_name,
+                              dest_description);
        if (ret != 0)
                goto out_free_ltes;
 
@@ -267,10 +268,8 @@ WIMLIBAPI int wimlib_export_image(WIMStruct *src_wim,
        for_dentry_in_tree(root, add_lte_to_dest_wim, &wims);
        wimlib_assert(list_empty(&wims.lte_list_head));
 
-       if (export_flags & WIMLIB_EXPORT_FLAG_BOOT) {
-               DEBUG("Setting boot_idx to %d", dest_wim->hdr.image_count);
+       if (export_flags & WIMLIB_EXPORT_FLAG_BOOT)
                wimlib_set_boot_idx(dest_wim, dest_wim->hdr.image_count);
-       }
        ret = 0;
        goto out;