Fixes, comments
[wimlib] / src / symlink.c
index bd370e30bedca28fe10a52185a8ac48b85f172f1..538b3e8548b1b5ec11fd3762349089a360d997f4 100644 (file)
@@ -219,7 +219,7 @@ inode_set_symlink(struct wim_inode *inode,
 
        ret = make_symlink_reparse_data_buf(target, &symlink_buf_len,
                                            &symlink_buf);
-       if (ret != 0)
+       if (ret)
                return ret;
 
        DEBUG("Made symlink reparse data buf (len = %zu, name len = %zu)",
@@ -243,7 +243,6 @@ inode_set_symlink(struct wim_inode *inode,
                lte->resource_location            = RESOURCE_IN_ATTACHED_BUFFER;
                lte->attached_buffer              = symlink_buf;
                lte->resource_entry.original_size = symlink_buf_len;
-               lte->resource_entry.size          = symlink_buf_len;
                copy_hash(lte->hash, symlink_buf_hash);
        }