|
|
Subscribe / Log in / New account

An end to implicit fall-throughs in the kernel

An end to implicit fall-throughs in the kernel

Posted Aug 2, 2019 21:35 UTC (Fri) by edeloget (subscriber, #88392)
In reply to: An end to implicit fall-throughs in the kernel by dgm
Parent article: An end to implicit fall-throughs in the kernel

/* fall through */ tells what the code is expected to do (i.e. it documents the intention), while /*no break */ is just telling how it's written. The latter could have been added by someone who was surprised that there were no break, and might be a hasitly and lazily written question :)


to post comments

An end to implicit fall-throughs in the kernel

Posted Aug 5, 2019 10:19 UTC (Mon) by dgm (subscriber, #49227) [Link]

My intention is always to write code that does not break. Sincerely, I hate code that falls throught.

;-P


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds