bnxt_en: Rearrange the logic in bnxt_flash_package_from_fw_obj().
authorMichael Chan <michael.chan@broadcom.com>
Sun, 13 Dec 2020 11:51:43 +0000 (06:51 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Dec 2020 02:52:38 +0000 (18:52 -0800)
commita9094ba6072bfabe93f93b641a3858d9c91c2c86
tree8eb0918dd4d5f488868cf85e5d72998818cbc2de
parent93ff343528ce034ef35e71d3b1d506df3cf85282
bnxt_en: Rearrange the logic in bnxt_flash_package_from_fw_obj().

This function will be modified in the next patch to retry flashing
the firmware in a loop.  To facilate that, we rearrange the code so
that the steps that only need to be done once before the loop will be
moved to the top of the function.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c