bnxt_en: Return proper error code for non-existent NVM variable
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Mon, 18 Nov 2019 08:56:41 +0000 (03:56 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:45:39 +0000 (16:45 +0100)
commitf462c417ceba361ddc691526c49e2d0920253369
tree71128bf29660ec1d45acb1e12d00ee359f8bc2af
parent65e6134a488ce7d611c46ee1455deeb213e86770
bnxt_en: Return proper error code for non-existent NVM variable

[ Upstream commit 05069dd4c577f9b143dfd243d55834333c4470c5 ]

For NVM params that are not supported in the current NVM
configuration, return the error as -EOPNOTSUPP.

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c