mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 03:33:59 +08:00
net/mlx5: Remove second FW tracer check
The FW tracer check is called twice, so delete one of them. Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
6dea2f7eff
commit
7e615b9978
@ -1100,7 +1100,7 @@ int mlx5_fw_tracer_reload(struct mlx5_fw_tracer *tracer)
|
||||
int err;
|
||||
|
||||
if (IS_ERR_OR_NULL(tracer))
|
||||
return -EINVAL;
|
||||
return 0;
|
||||
|
||||
dev = tracer->dev;
|
||||
mlx5_fw_tracer_cleanup(tracer);
|
||||
|
@ -199,16 +199,11 @@ static void mlx5_fw_live_patch_event(struct work_struct *work)
|
||||
struct mlx5_fw_reset *fw_reset = container_of(work, struct mlx5_fw_reset,
|
||||
fw_live_patch_work);
|
||||
struct mlx5_core_dev *dev = fw_reset->dev;
|
||||
struct mlx5_fw_tracer *tracer;
|
||||
|
||||
mlx5_core_info(dev, "Live patch updated firmware version: %d.%d.%d\n", fw_rev_maj(dev),
|
||||
fw_rev_min(dev), fw_rev_sub(dev));
|
||||
|
||||
tracer = dev->tracer;
|
||||
if (IS_ERR_OR_NULL(tracer))
|
||||
return;
|
||||
|
||||
if (mlx5_fw_tracer_reload(tracer))
|
||||
if (mlx5_fw_tracer_reload(dev->tracer))
|
||||
mlx5_core_err(dev, "Failed to reload FW tracer\n");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user