bnxt_en: Refactor bnxt_need_reserve_rings().
authorMichael Chan <michael.chan@broadcom.com>
Sat, 31 Mar 2018 17:54:19 +0000 (13:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 03:24:20 +0000 (23:24 -0400)
commit4e41dc5deb6e5c36ac5f2e49575485920037b2aa
treed41ab998038d6a8f13c0cc50a3815b74221e9e72
parente5811b8c09df9bc80eabc95339fceded23f16289
bnxt_en: Refactor bnxt_need_reserve_rings().

Refactor bnxt_need_reserve_rings() slightly so that __bnxt_reserve_rings()
can call it and remove some duplicated code.

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