net/bnxt: refactor HWRM ring allocation routine
authorSomnath Kotur <somnath.kotur@broadcom.com>
Fri, 19 Feb 2021 09:28:03 +0000 (14:58 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Mon, 1 Mar 2021 00:27:01 +0000 (01:27 +0100)
commitfb7c1b59273b62c387c2d186a4393164975ade38
tree3ca4dbb05121ea46a53dfeb6a523eded1cd9dd80
parent9f13e888ef77d36a97a3ace278e8e812a98e740d
net/bnxt: refactor HWRM ring allocation routine

bnxt_alloc_hwrm_rings() was duplicating a snippet of code that was
already present in bnxt_alloc_hwrm_rx_ring() with just one line/function
invocation missing. Add that line and replace the snippet of code
with a call to bnxt_hwrm_alloc_rx_ring

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ring.c