title: Linux Kernel coding style
body: <p>I am new in the kernel-programming, so I would like to find out what coding style is more acceptable. For example, in case of the error handling which of the following is better?</p>
  
  <p>This one:</p>
  
  <pre><code>/* some stuff */
  if(error) {
      /* error handling */
      return -(errorcode);
  }
  /* normal actions */
  </code></pre>
  
  <p>or this one:</p>
  
  <pre><code>/* some stuff */
  if(!error) {
      /* normal actions */
  } else {
      /* error handling */
      return -(errorcode);
  }
  </code></pre>
  
  <p>Where can I find any document, that regards to kernel coding standard?</p>