From: Timo Kokkonen Date: Thu, 19 Aug 2010 20:24:40 +0000 (+0300) Subject: analyzer: Remove unnecessary list_empty() check X-Git-Url: http://git.itanic.dy.fi/?p=scan-pagemap;a=commitdiff_plain;h=fb7d48bd18e2ee57ff724c33cd4b6bac2950268d analyzer: Remove unnecessary list_empty() check This is not needed since list_for_each_entry() will handle empty lists just fine. Signed-off-by: Timo Kokkonen --- diff --git a/analyze.c b/analyze.c index 6d65f02..0e4982b 100644 --- a/analyze.c +++ b/analyze.c @@ -42,9 +42,6 @@ static void count_pages(struct bintree *b, struct bintree_ops *ops) struct maps_list *ml; if (af->pid) { - if (list_empty(&pf->ml)) { - return; - } list_for_each_entry(ml, &pf->ml, list) { if (ml->map->pid == af->pid) goto get_stats;