linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* question about drivers/mtd/ubi/cdev.c
@ 2010-08-03 20:12 Julia Lawall
  2010-08-04  3:06 ` Artem Bityutskiy
  0 siblings, 1 reply; 4+ messages in thread
From: Julia Lawall @ 2010-08-03 20:12 UTC (permalink / raw)
  To: dedekind1, dwmw2, linux-mtd

I was wondering about the following code in the function rename_volumes in 
the file drivers/mtd/ubi/cdev.c:

list_for_each_entry(re, &rename_list, list) {
	...
        if (no_remove_needed)
                continue;
	...
        re = kzalloc(sizeof(struct ubi_rename_entry), GFP_KERNEL);
	if (!re) { ... }
        re->remove = 1;
        re->desc = desc;
        list_add(&re->list, &rename_list);
	...
}

Is there a danger of repeating computation since re is redefined and moved 
back to the beginning of the list?

julia

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-04  6:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-03 20:12 question about drivers/mtd/ubi/cdev.c Julia Lawall
2010-08-04  3:06 ` Artem Bityutskiy
2010-08-04  5:48   ` Julia Lawall
2010-08-04  6:37     ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).