Some clean up and more modular cache management
[yaffs2.git] / yaffs_yaffs2.c
index 9eb42f7ff54d9e4a93036e9a2ad75e53f1147707..6be3d6a0c6208f082e0fd1a4a22845c97ba118c2 100644 (file)
@@ -707,6 +707,8 @@ static int yaffs2_wr_checkpt_objs(struct yaffs_dev *dev)
         * dumping them to the checkpointing stream.
         */
 
+       (void) cp_variant_type;
+
        for (i = 0; ok && i < YAFFS_NOBJECT_BUCKETS; i++) {
                list_for_each(lh, &dev->obj_bucket[i].list) {
                        obj = list_entry(lh, struct yaffs_obj, hash_link);