git: 2ace1585b0f6 - stable/13 - intrng: remove now redundant shadow variable.

From: Michal Meloun <mmel_at_FreeBSD.org>
Date: Thu, 20 Jan 2022 10:09:40 UTC
The branch stable/13 has been updated by mmel:

URL: https://cgit.FreeBSD.org/src/commit/?id=2ace1585b0f6b191767152feecf3cb6f45a58c31

commit 2ace1585b0f6b191767152feecf3cb6f45a58c31
Author:     Michal Meloun <mmel@FreeBSD.org>
AuthorDate: 2021-07-02 18:28:25 +0000
Commit:     Michal Meloun <mmel@FreeBSD.org>
CommitDate: 2022-01-20 10:08:45 +0000

    intrng: remove now redundant shadow variable.
    
    Should not be a functional change.
    
    Submitted by:   ehem_freebsd@m5p.com
    Discussed in:   https://reviews.freebsd.org/D29310
    MFC after:      4 weeks
    
    (cherry picked from commit e88c3b1b02a663f18f51167f54a50e7b4f0eca02)
---
 sys/kern/subr_intr.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/sys/kern/subr_intr.c b/sys/kern/subr_intr.c
index d4926b2e2364..04636f09c5a1 100644
--- a/sys/kern/subr_intr.c
+++ b/sys/kern/subr_intr.c
@@ -401,15 +401,14 @@ intr_isrc_dispatch(struct intr_irqsrc *isrc, struct trapframe *tf)
 static inline int
 isrc_alloc_irq(struct intr_irqsrc *isrc)
 {
-	u_int maxirqs, irq;
+	u_int irq;
 
 	mtx_assert(&isrc_table_lock, MA_OWNED);
 
-	maxirqs = intr_nirq;
-	if (irq_next_free >= maxirqs)
+	if (irq_next_free >= intr_nirq)
 		return (ENOSPC);
 
-	for (irq = irq_next_free; irq < maxirqs; irq++) {
+	for (irq = irq_next_free; irq < intr_nirq; irq++) {
 		if (irq_sources[irq] == NULL)
 			goto found;
 	}
@@ -418,7 +417,7 @@ isrc_alloc_irq(struct intr_irqsrc *isrc)
 			goto found;
 	}
 
-	irq_next_free = maxirqs;
+	irq_next_free = intr_nirq;
 	return (ENOSPC);
 
 found:
@@ -426,7 +425,7 @@ found:
 	irq_sources[irq] = isrc;
 
 	irq_next_free = irq + 1;
-	if (irq_next_free >= maxirqs)
+	if (irq_next_free >= intr_nirq)
 		irq_next_free = 0;
 	return (0);
 }