Re: [PATCH v6 05/12] regmap: irq: Remove unreachable goto

Uwe Kleine-König
2025-04-19T10:38:57Z

[-- Attachment #1: Type: text/plain, Size: 476 bytes --]

On Wed, Apr 09, 2025 at 04:19:27PM +0100, Mark Brown wrote:
> On Wed, Apr 09, 2025 at 04:55:52PM +0200, Mathieu Dubois-Briand wrote:
> > BUG() never returns, so code after it is unreachable: remove it.
>
> BUG() can be compiled out, CONFIG_BUG.

In that case BUG is defined as:

#define BUG() do { \
do {} while (1); \
unreachable(); \
} while (0)

so the return can be dropped as suggested in the patch.

Best regards
Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]