irqbalance/remove-c-in-parse_proc_interrupts.patch

26 lines
762 B
Diff
Raw Normal View History

2020-07-03 17:09:39 +08:00
From 83917c1c266ee2c3b3f948fc7785d5ff73d3b297 Mon Sep 17 00:00:00 2001
From: liuchao173 <55137861+liuchao173@users.noreply.github.com>
Date: Mon, 21 Oct 2019 19:41:49 +0800
Subject: [PATCH 27/53] remove "c++;" in parse_proc_interrupts
in parse_proc_interrupts, just get irq's name. After "*c = 0", characters after ":" in line and c are useless. There is no need to let c increase.
---
procinterrupts.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/procinterrupts.c b/procinterrupts.c
index 4a7a5d5..29b0fef 100644
--- a/procinterrupts.c
+++ b/procinterrupts.c
@@ -212,7 +212,6 @@ GList* collect_full_irq_list()
irq_mod = last_token;
*c = 0;
- c++;
number = strtoul(line, NULL, 10);
info = calloc(sizeof(struct irq_info), 1);
--
2.23.0