[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] i386: Remove unused volatile variable err in amp.c
From: |
Milos Nikic |
Subject: |
[PATCH] i386: Remove unused volatile variable err in amp.c |
Date: |
Thu, 19 Jun 2025 05:56:13 +0100 |
The variable was assigned but never used, and was marked volatile
unnecessarily. This patch removes the dead assignment and declaration, and one
compiler warning.
---
i386/i386/smp.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/i386/i386/smp.c b/i386/i386/smp.c
index e3e4cc82..cf390ace 100644
--- a/i386/i386/smp.c
+++ b/i386/i386/smp.c
@@ -129,11 +129,9 @@ static int
smp_send_ipi_startup_twice(int bsp_apic_id, int vector)
{
int i, accept_err, send_err;
- volatile int err;
for (i = 0; i < 2; i++) {
lapic->error_status.r = 0;
- err = lapic->error_status.r;
/* StartUp IPI:
*
--
2.40.1
- [PATCH] i386: Remove unused volatile variable err in amp.c,
Milos Nikic <=