projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs: More clean up
[yaffs2.git]
/
yaffs_allocator.c
diff --git
a/yaffs_allocator.c
b/yaffs_allocator.c
index 586ca054913b1cf096aa30ff6321b5d3c03f1aec..35d8869c88fb2e19b7a9d0b959af21fb78c0eaf9 100644
(file)
--- a/
yaffs_allocator.c
+++ b/
yaffs_allocator.c
@@
-315,7
+315,7
@@
static int yaffs_create_free_objs(struct yaffs_dev *dev, int n_obj)
/* Hook them into the free list */
for (i = 0; i < n_obj - 1; i++) {
new_objs[i].siblings.next =
/* Hook them into the free list */
for (i = 0; i < n_obj - 1; i++) {
new_objs[i].siblings.next =
- (struct
y
list_head *)(&new_objs[i + 1]);
+ (struct list_head *)(&new_objs[i + 1]);
}
new_objs[n_obj - 1].siblings.next = (void *)allocator->free_objs;
}
new_objs[n_obj - 1].siblings.next = (void *)allocator->free_objs;
@@
-366,7
+366,7
@@
void yaffs_free_raw_obj(struct yaffs_dev *dev, struct yaffs_obj *obj)
YBUG();
else {
/* Link into the free list. */
YBUG();
else {
/* Link into the free list. */
- obj->siblings.next = (struct
y
list_head *)(allocator->free_objs);
+ obj->siblings.next = (struct list_head *)(allocator->free_objs);
allocator->free_objs = obj;
allocator->n_free_objects++;
}
allocator->free_objs = obj;
allocator->n_free_objects++;
}