From fb7d48bd18e2ee57ff724c33cd4b6bac2950268d Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Thu, 19 Aug 2010 23:24:40 +0300 Subject: [PATCH] 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 --- analyze.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.44.0