]> git.sur5r.net Git - u-boot/blobdiff - fs/yaffs2/yaffsfs.c
configs: dragonboard410c: remove env partition offset
[u-boot] / fs / yaffs2 / yaffsfs.c
index ba76a5ccdbdb65ab9b5d6a410c81add5f919e7ef..47abc6bedae7bf85c7eaea34dfdf1705065f297b 100644 (file)
@@ -2847,12 +2847,9 @@ static void yaffsfs_RemoveObjectCallback(struct yaffs_obj *obj)
         * the next one to prevent a hanging ptr.
         */
        list_for_each(i, &search_contexts) {
-               if (i) {
-                       dsc = list_entry(i, struct yaffsfs_DirSearchContxt,
-                                        others);
-                       if (dsc->nextReturn == obj)
-                               yaffsfs_DirAdvance(dsc);
-               }
+               dsc = list_entry(i, struct yaffsfs_DirSearchContxt, others);
+               if (dsc->nextReturn == obj)
+                       yaffsfs_DirAdvance(dsc);
        }
 
 }