Skip to content

Commit 8fcbf0a

Browse files
Kalesh APrleon
authored andcommitted
RDMA/bnxt_re: Remove a redundant check inside bnxt_re_vf_res_config
After the cited commit, there is no possibility that this check can return true. Remove it. Fixes: a43c26f ("RDMA/bnxt_re: Remove the sriov config callback") Signed-off-by: Kalesh AP <[email protected]> Signed-off-by: Selvin Xavier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 282fd66 commit 8fcbf0a

File tree

1 file changed

+0
-3
lines changed
  • drivers/infiniband/hw/bnxt_re

1 file changed

+0
-3
lines changed

drivers/infiniband/hw/bnxt_re/main.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,6 @@ static void bnxt_re_set_resource_limits(struct bnxt_re_dev *rdev)
280280

281281
static void bnxt_re_vf_res_config(struct bnxt_re_dev *rdev)
282282
{
283-
284-
if (test_bit(BNXT_RE_FLAG_ERR_DEVICE_DETACHED, &rdev->flags))
285-
return;
286283
rdev->num_vfs = pci_sriov_get_totalvfs(rdev->en_dev->pdev);
287284
if (!bnxt_qplib_is_chip_gen_p5_p7(rdev->chip_ctx)) {
288285
bnxt_re_set_resource_limits(rdev);

0 commit comments

Comments
 (0)