]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bnxt_en: Drop redundant if block in bnxt_dl_flash_update()
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Wed, 17 Sep 2025 04:08:30 +0000 (21:08 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Sep 2025 11:09:42 +0000 (13:09 +0200)
commit3b46a9e404abcf4c4292be9e3ca13ce884169ae0
tree402d832fabf4c2311ebbc02c246750dc31ab48f5
parent64d2616972b77506731fa0122d3c48cb04dbe21b
bnxt_en: Drop redundant if block in bnxt_dl_flash_update()

The devlink stack has sanity checks and it invokes flash_update()
only if it is supported by the driver.  The VF driver does not
advertise the support for flash_update in struct devlink_ops.
This makes if condition inside bnxt_dl_flash_update() redundant.

Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20250917040839.1924698-2-michael.chan@broadcom.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c