bnxt_en: Fix return code to "flash_device".
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Mon, 25 May 2020 21:41:18 +0000 (17:41 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 03:30:48 +0000 (20:30 -0700)
commit95ec1f470b976858264d7635a6ef76bc33c3875b
treefcabc7cb30ad6f844a0c121fb4aa6aa5b2dacc66
parentb8056e8434b037fdab08158fea99ed7bc8ef3a74
bnxt_en: Fix return code to "flash_device".

When NVRAM directory is not found, return the error code
properly as per firmware command failure instead of the hardcode
-ENOBUFS.

Fixes: 3a707bed13b7 ("bnxt_en: Return -EAGAIN if fw command returns BUSY")
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_ethtool.c