Merge remote-tracking branch 'torvalds/master' into perf/core
[linux-2.6-microblaze.git] / tools / perf / util / srccode.c
index c29edaa..476e998 100644 (file)
@@ -97,8 +97,7 @@ static struct srcfile *find_srcfile(char *fn)
        hlist_for_each_entry (h, &srcfile_htab[hval], hash_nd) {
                if (!strcmp(fn, h->fn)) {
                        /* Move to front */
-                       list_del(&h->nd);
-                       list_add(&h->nd, &srcfile_list);
+                       list_move(&h->nd, &srcfile_list);
                        return h;
                }
        }