]> git.sur5r.net Git - u-boot/blobdiff - fs/yaffs2/yaffs_yaffs1.c
spi: Fix bit assignment with flags
[u-boot] / fs / yaffs2 / yaffs_yaffs1.c
index d277e20e2a554cee97d28e91430ea24e839d4775..357d8f75dd8b3b22e30a50965d2d4e2bfbc83d7a 100644 (file)
@@ -23,7 +23,6 @@ int yaffs1_scan(struct yaffs_dev *dev)
 {
        struct yaffs_ext_tags tags;
        int blk;
-       int result;
        int chunk;
        int c;
        int deleted;
@@ -95,8 +94,7 @@ int yaffs1_scan(struct yaffs_dev *dev)
                        /* Read the tags and decide what to do */
                        chunk = blk * dev->param.chunks_per_block + c;
 
-                       result = yaffs_rd_chunk_tags_nand(dev, chunk, NULL,
-                                                         &tags);
+                       yaffs_rd_chunk_tags_nand(dev, chunk, NULL, &tags);
 
                        /* Let's have a good look at this chunk... */
 
@@ -181,9 +179,8 @@ int yaffs1_scan(struct yaffs_dev *dev)
                                yaffs_set_chunk_bit(dev, blk, c);
                                bi->pages_in_use++;
 
-                               result = yaffs_rd_chunk_tags_nand(dev, chunk,
-                                                                 chunk_data,
-                                                                 NULL);
+                               yaffs_rd_chunk_tags_nand(dev, chunk,
+                                                        chunk_data, NULL);
 
                                oh = (struct yaffs_obj_hdr *)chunk_data;