int i, j, num_used;
        u32 major_hash;
        struct ocfs2_dx_leaf *orig_dx_leaf, *new_dx_leaf;
-       struct ocfs2_dx_entry_list *orig_list, *new_list, *tmp_list;
+       struct ocfs2_dx_entry_list *orig_list, *tmp_list;
        struct ocfs2_dx_entry *dx_entry;
 
        tmp_list = &tmp_dx_leaf->dl_list;
                orig_dx_leaf = (struct ocfs2_dx_leaf *) orig_dx_leaves[i]->b_data;
                orig_list = &orig_dx_leaf->dl_list;
                new_dx_leaf = (struct ocfs2_dx_leaf *) new_dx_leaves[i]->b_data;
-               new_list = &new_dx_leaf->dl_list;
 
                num_used = le16_to_cpu(orig_list->de_num_used);