> -----Original Message-----
> From: Stephen Hemminger <[email protected]>
> Sent: Monday, November 30, 2026 1:27 AM
> To: [email protected]
> Cc: Stephen Hemminger <[email protected]>; Nithin Dabilpuram
> <[email protected]>; Kiran Kumar K <[email protected]>;
> Sunil Kumar Kori <[email protected]>; Satha Rao
> <[email protected]>; Harman Kalra <[email protected]>; Dariusz
> Sosnowski <[email protected]>; Slava Ovsiienko
> <[email protected]>; Bing Zhao <[email protected]>; Ori Kam
> <[email protected]>; Suanming Mou <[email protected]>; Matan
> Azrad <[email protected]>; Gagandeep Singh <[email protected]>; Hemant
> Agrawal <[email protected]>; Kai Ji <[email protected]>; Sachin
> Saxena <[email protected]>; Mattias Rönnblom
> <[email protected]>; Srikanth Yalavarthi
> <[email protected]>; Julien Aube <[email protected]>; Rosen Xu
> <[email protected]>; Andrew Rybchenko
> <[email protected]>
> Subject: [PATCH 35/37] drivers: remove unreachable statements
> 
> Clang with -Wunreachable-code-aggressive reports break statements after a
> return or rte_panic(), and returns after a switch where every case returns.
> 
> Remove them. Extra defensive code does not help: with the trailing return
> gone, adding a case that forgets to return becomes a compiler error instead
> of silently returning zero.
> 
> Signed-off-by: Stephen Hemminger <[email protected]>

Acked-by: Dariusz Sosnowski <[email protected]>

Reply via email to