]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Refactor bnxt_alloc_stats().
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Sun, 5 May 2019 11:16:59 +0000 (07:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 May 2019 04:42:16 +0000 (21:42 -0700)
commit1446e27a63cce64290fe1067054b69378f32dab7
tree9277ff14b96d24c71e7319ff37b72220537603bd
parentbf260f7b6a426159d8360c4a5d9895a51f5402b8
bnxt_en: Refactor bnxt_alloc_stats().

Reverse the condition of the large "if" block and return early.  This
will simplify the follow up patch to add PCIe statistics.

Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c