X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=tools%2Fperf%2Futil%2Fsrccode.c;h=476e99896d5e37a013be89e0e7acf7bcb77014f3;hb=ce09673636f9581d2e2e24af785c463c030a1fd8;hp=c29edaaca8633e5539511abb457e5592ee7fbbf1;hpb=9d0af44c2ed036c663832f3b764ffd1109c8b79e;p=linux-2.6-microblaze.git diff --git a/tools/perf/util/srccode.c b/tools/perf/util/srccode.c index c29edaaca863..476e99896d5e 100644 --- a/tools/perf/util/srccode.c +++ b/tools/perf/util/srccode.c @@ -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; } }