[PATCH 05/18] net/net: fix switch/case fallthrough annotations
Tom Rini
trini at konsulko.com
Mon Mar 31 17:55:57 CEST 2025
On Thu, Mar 27, 2025 at 03:33:00PM +0000, Andre Przywara wrote:
> The net_check_prereq() routine in the generic network handling code
> mixes case: labels with #ifdef's, which makes predicting fallthrough
> situations tricky. We had two "fall through" comments in the code, but
> at the wrong places.
>
> Remove one unneeded comment (no annotations necessary between just empty
> labels), and move one other instance to the right place (before any
> label sequence).
> This makes GCC's implicit fallthrough checker happy.
>
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250331/7bd60433/attachment.sig>
More information about the U-Boot
mailing list