]> wimlib.net Git - wimlib/blobdiff - src/extract.c
Various fixes and cleanups
[wimlib] / src / extract.c
index bb99b24794b31cf86e9e4297b9e4a2b1df9fa420..55508169a742179abfc964620f495e212ca23d6d 100644 (file)
@@ -415,7 +415,6 @@ static void calculate_bytes_to_extract(struct list_head *stream_list,
                                       union wimlib_progress_info *progress)
 {
        struct lookup_table_entry *lte;
-       struct inode *inode;
        u64 total_bytes = 0;
        u64 num_streams = 0;
 
@@ -721,7 +720,7 @@ WIMLIBAPI int wimlib_extract_image(WIMStruct *w, int image,
        struct lookup_table *joined_tab, *w_tab_save;
        int ret;
 
-       if (!w || !target)
+       if (!target)
                return WIMLIB_ERR_INVALID_PARAM;
 
        extract_flags &= WIMLIB_EXTRACT_MASK_PUBLIC;