|
@@ -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);
|
|
|
}
|
|
|
|
|
|
}
|