34 lines
983 B
Diff
34 lines
983 B
Diff
|
|
From 4c22b5fa6009a2f7262801925105749aee9ff0bc Mon Sep 17 00:00:00 2001
|
||
|
|
From: Yunfeng Ye <yeyunfeng@huawei.com>
|
||
|
|
Date: Thu, 24 Oct 2019 21:51:54 +0800
|
||
|
|
Subject: [PATCH 29/53] reduce redundant check in add_missing_irq()
|
||
|
|
|
||
|
|
get_irq_info() is invoked in add_new_irq(), it is unnecessary to invoke
|
||
|
|
again in add_missing_irq().
|
||
|
|
|
||
|
|
Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
|
||
|
|
---
|
||
|
|
classify.c | 4 +---
|
||
|
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/classify.c b/classify.c
|
||
|
|
index 81ad8a6..7454c5f 100644
|
||
|
|
--- a/classify.c
|
||
|
|
+++ b/classify.c
|
||
|
|
@@ -744,11 +744,9 @@ static void add_new_irq(int irq, struct irq_info *hint, GList *proc_interrupts)
|
||
|
|
|
||
|
|
static void add_missing_irq(struct irq_info *info, void *attr)
|
||
|
|
{
|
||
|
|
- struct irq_info *lookup = get_irq_info(info->irq);
|
||
|
|
GList *proc_interrupts = (GList *) attr;
|
||
|
|
|
||
|
|
- if (!lookup)
|
||
|
|
- add_new_irq(info->irq, info, proc_interrupts);
|
||
|
|
+ add_new_irq(info->irq, info, proc_interrupts);
|
||
|
|
}
|
||
|
|
|
||
|
|
static void free_tmp_irqs(gpointer data)
|
||
|
|
--
|
||
|
|
2.23.0
|
||
|
|
|