From: Colin Ian King Date: Fri, 22 Apr 2022 11:04:18 +0000 (+0100) Subject: genirq/matrix: Remove redundant assignment to variable 'end' X-Git-Tag: v6.1-rc5~1352^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1adb4d7ad3a585b451f5cf6b0a90c5917af3eac5;p=platform%2Fkernel%2Flinux-starfive.git genirq/matrix: Remove redundant assignment to variable 'end' Variable end is being initialized with a value that is never read, it is being re-assigned later with the same value. The initialization is redundant and can be removed. Cleans up clang scan build warning: kernel/irq/matrix.c:289:25: warning: Value stored to 'end' during its initialization is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King Signed-off-by: Thomas Gleixner Reviewed-by: Tom Rix Link: https://lore.kernel.org/r/20220422110418.1264778-1-colin.i.king@gmail.com --- diff --git a/kernel/irq/matrix.c b/kernel/irq/matrix.c index bbfb264..1698e77 100644 --- a/kernel/irq/matrix.c +++ b/kernel/irq/matrix.c @@ -286,7 +286,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))