[PATCH v6 05/12] regmap: irq: Remove unreachable goto
From: Mathieu Dubois-Briand
Date: Wed Apr 09 2025 - 11:09:21 EST
BUG() never returns, so code after it is unreachable: remove it.
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@xxxxxxxxxxx>
---
drivers/base/regmap/regmap-irq.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/base/regmap/regmap-irq.c b/drivers/base/regmap/regmap-irq.c
index 6c6869188c31..14f5fcc3ec1d 100644
--- a/drivers/base/regmap/regmap-irq.c
+++ b/drivers/base/regmap/regmap-irq.c
@@ -436,7 +436,6 @@ static irqreturn_t regmap_irq_thread(int irq, void *d)
break;
default:
BUG();
- goto exit;
}
}
--
2.39.5