1. 16 5月, 2010 15 次提交
  2. 15 5月, 2010 1 次提交
  3. 14 5月, 2010 23 次提交
  4. 13 5月, 2010 1 次提交
    • J
      netfilter: remove unnecessary returns from void function()s · 736d58e3
      Joe Perches 提交于
      This patch removes from net/ netfilter files
      all the unnecessary return; statements that precede the
      last closing brace of void functions.
      
      It does not remove the returns that are immediately
      preceded by a label as gcc doesn't like that.
      
      Done via:
      $ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
        xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'
      Signed-off-by: NJoe Perches <joe@perches.com>
      [Patrick: changed to keep return statements in otherwise empty function bodies]
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      736d58e3