1. 18 4月, 2017 17 次提交
  2. 14 4月, 2017 22 次提交
  3. 11 4月, 2017 1 次提交
    • T
      staging: ks7010: move check and break to top of loop · d317d054
      Tobin C. Harding 提交于
      Function uses an if statement within a for loop to guard a block of
      code. If 'if' statement conditional evaluates to false, loop breaks. The
      same logic can be expressed by inverting the conditional and breaking
      when new conditional evaluates to true. This allows the subsequent code
      to be indented one level less, aiding readability. Reduced indentation
      also allows for the code to be laid out more clearly and fixes two
      checkpatch warnings.
      
      Invert if statement conditional, break from for loop if new
      conditional evaluates to true. Reduce indentation in subsequent code,
      fix whitespace issues. Do not change program logic.
      Signed-off-by: NTobin C. Harding <me@tobin.cc>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d317d054