Commit 10bea9c8 authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Jason Gunthorpe

RDMA/mlx5: Remove redundant allocation warning print

The kmalloc() failure to allocate memory generates enough information
and doesn't need to be accompanied by another driver print.

Fixes: d69a24e0 ("IB/mlx5: Move IB event processing onto a workqueue")
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Reviewed-by: default avatarYuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 15cbc519
...@@ -3345,7 +3345,9 @@ static void mlx5_ib_event(struct mlx5_core_dev *dev, void *context, ...@@ -3345,7 +3345,9 @@ static void mlx5_ib_event(struct mlx5_core_dev *dev, void *context,
struct mlx5_ib_event_work *work; struct mlx5_ib_event_work *work;
work = kmalloc(sizeof(*work), GFP_ATOMIC); work = kmalloc(sizeof(*work), GFP_ATOMIC);
if (work) { if (!work)
return;
INIT_WORK(&work->work, mlx5_ib_handle_event); INIT_WORK(&work->work, mlx5_ib_handle_event);
work->dev = dev; work->dev = dev;
work->param = param; work->param = param;
...@@ -3353,11 +3355,6 @@ static void mlx5_ib_event(struct mlx5_core_dev *dev, void *context, ...@@ -3353,11 +3355,6 @@ static void mlx5_ib_event(struct mlx5_core_dev *dev, void *context,
work->event = event; work->event = event;
queue_work(mlx5_ib_event_wq, &work->work); queue_work(mlx5_ib_event_wq, &work->work);
return;
}
dev_warn(&dev->pdev->dev, "%s: mlx5_dev_event: %d, with param: %lu dropped, couldn't allocate memory.\n",
__func__, event, param);
} }
static int set_has_smi_cap(struct mlx5_ib_dev *dev) static int set_has_smi_cap(struct mlx5_ib_dev *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment