With the type-safe rb_entry (based on container_of, I sent it) I discovered
this type error, so I've fixed it.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
struct phys_desc *d;
while(*n != NULL){
- d = rb_entry(n, struct phys_desc, rb);
+ d = rb_entry(*n, struct phys_desc, rb);
if(d->virt == virt)
return(n);
if(*n == NULL)
return(NULL);
- return(rb_entry(n, struct phys_desc, rb));
+ return(rb_entry(*n, struct phys_desc, rb));
}
static void insert_phys_mapping(struct phys_desc *desc)