Paraphrasing the Alien films: "Under water, nobody can read your
— Linus Torvalds
Tonight’s mainline Linux kernel contains about 100,000 instances of
the keyword “goto”. The most deeply nested use of goto that I could
find is here
with a depth of 12. Unfortunately this function is kind of
a much cleaner example
with depth 10.
Here are the goto targets that appear more than 200 times:
out (23228 times)
error (4240 times)
err (4184 times)
fail (3250 times)
done (3179 times)
exit (1825 times)
bail (1539 times)
out_unlock (1219 times)
err_out (1165 times)
out_free (1053 times)
— John Regehr
diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches
@@ -93,7 +93,9 @@ includes updates for subsystem X. Please apply."
The maintainer will thank you if you write your patch description in a
form which can be easily pulled into Linux's source code management
-system, git, as a "commit log". See #15, below.
+system, git, as a "commit log". See #15, below. If the maintainer has
+to hand-edit your patch, you owe them the beverage of their choice the
+next time you see them.
— Greg Kroah-Hartman
— Andrew Morton
to post comments)