]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: fix error return code in bnxt_init_one()
authorZhang Changzhong <zhangchangzhong@huawei.com>
Wed, 18 Nov 2020 12:17:31 +0000 (20:17 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Nov 2020 05:46:30 +0000 (21:46 -0800)
commit6a22cf2d54bb428c0b554da93a98712df9a8b952
tree4c4776fde86dfac43ba7009f9fa2dc6e96982cf4
parent249337c75ad997b2bf49f7ee70b2730df500626a
bnxt_en: fix error return code in bnxt_init_one()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 1051f667eb98 ("bnxt_en: Improve VF/PF link change logic.")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Link: https://lore.kernel.org/r/1605701851-20270-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c