1. 27 7月, 2017 6 次提交
  2. 20 7月, 2017 1 次提交
    • G
      qlcnic: remove unnecessary static in qlcnic_dump_fw() · 048578a1
      Gustavo A. R. Silva 提交于
      Remove unnecessary static on local variable fw_dump_ops.
      Such variable is initialized before being used, on every
      execution path throughout the function. The static has no
      benefit and, removing it reduces the object file size.
      
      This issue was detected using Coccinelle and the following semantic patch:
      
      @bad exists@
      position p;
      identifier x;
      type T;
      @@
      
      static T x@p;
      ...
      x = <+...x...+>
      
      @@
      identifier x;
      expression e;
      type T;
      position p != bad.p;
      @@
      
      -static
       T x@p;
       ... when != x
           when strict
      ?x = e;
      
      In the following log you can see a difference in the object file size.
      This log is the output of the size command, before and after the code
      change:
      
      before:
         text    data     bss     dec     hex filename
        19032    2136      64   21232    52f0 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.o
      
      after:
         text    data     bss     dec     hex filename
        19020    2048       0   21068    524c drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.o
      Signed-off-by: NGustavo A. R. Silva <gustavo@embeddedor.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      048578a1
  3. 12 7月, 2017 1 次提交
  4. 04 7月, 2017 1 次提交
  5. 03 7月, 2017 13 次提交
  6. 22 6月, 2017 4 次提交
  7. 21 6月, 2017 7 次提交
  8. 16 6月, 2017 2 次提交
  9. 15 6月, 2017 1 次提交
  10. 14 6月, 2017 1 次提交
  11. 10 6月, 2017 3 次提交