linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] genirq: Remove duplicate assignments
@ 2021-11-04  6:43 cgel.zte
  0 siblings, 0 replies; only message in thread
From: cgel.zte @ 2021-11-04  6:43 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: linux-kernel, luo penghao, Zeal Robot

From: luo penghao <luo.penghao@zte.com.cn>

The variable has performed the same assignment twice.

The clang_analyzer complains as follows:

kernel/irq/matrix.c:289:25 warning:

Value stored to 'end' during its initialization is never read

change in v2:

Repair the sending email box

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
---
 kernel/irq/matrix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/irq/matrix.c b/kernel/irq/matrix.c
index 578596e..0469f30 100644
--- a/kernel/irq/matrix.c
+++ b/kernel/irq/matrix.c
@@ -285,7 +285,7 @@ void irq_matrix_remove_managed(struct irq_matrix *m, const struct cpumask *msk)
 int irq_matrix_alloc_managed(struct irq_matrix *m, const struct cpumask *msk,
 			     unsigned int *mapped_cpu)
 {
-	unsigned int bit, cpu, end = m->alloc_end;
+	unsigned int bit, cpu, end;
 	struct cpumap *cm;
 
 	if (cpumask_empty(msk))
-- 
2.15.2



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-04  6:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04  6:43 [PATCH v2] genirq: Remove duplicate assignments cgel.zte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).