+.. _codingstyle:
+
Linux kernel coding style
=========================
renumber them if you ever add or remove exit paths, and they make correctness
difficult to verify anyway.
-It is advised to indent labels with a single space (not tab), so that
-``diff -p`` does not confuse labels with functions.
-
The rationale for using gotos is:
- unconditional statements are easier to understand and follow
goto out_buffer;
}
...
- out_free_buffer:
+ out_free_buffer:
kfree(buffer);
return result;
}
.. code-block:: c
- err:
+ err:
kfree(foo->bar);
kfree(foo);
return ret;