union wimlib_progress_info *progress)
{
struct lookup_table_entry *lte;
- struct inode *inode;
u64 total_bytes = 0;
u64 num_streams = 0;
ret = ops->apply_dentry(dentry, args);
if (ret != 0)
goto out;
- if (args->progress.extract.completed_bytes >= next_progress
- && args->progress.extract.total_bytes != 0)
+ if (progress_func &&
+ args->progress.extract.completed_bytes >= next_progress &&
+ args->progress.extract.total_bytes != 0)
{
progress_func(WIMLIB_PROGRESS_MSG_EXTRACT_STREAMS,
&args->progress);
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;