summaryrefslogtreecommitdiff
path: root/kernel/irq
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-04-22 12:04:18 +0100
committerThomas Gleixner <tglx@linutronix.de>2022-04-25 15:02:57 +0200
commit1adb4d7ad3a585b451f5cf6b0a90c5917af3eac5 (patch)
tree6dfe644664d5d36d8dd1047c96a572a1625a4034 /kernel/irq
parentc48c8b829d2b966a6649827426bcdba082ccf922 (diff)
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 <colin.i.king@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20220422110418.1264778-1-colin.i.king@gmail.com
Diffstat (limited to 'kernel/irq')
-rw-r--r--kernel/irq/matrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/matrix.c b/kernel/irq/matrix.c
index bbfb26489aa1..1698e77645ac 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))