mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
IB/mlx5: Remove unused code in mr.c
The variable start in struct mlx5_ib_mr is never used. Remove it. Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
parent
7e22e91102
commit
d9fe409163
@ -264,7 +264,6 @@ struct mlx5_ib_mr {
|
|||||||
enum ib_wc_status status;
|
enum ib_wc_status status;
|
||||||
struct mlx5_ib_dev *dev;
|
struct mlx5_ib_dev *dev;
|
||||||
struct mlx5_create_mkey_mbox_out out;
|
struct mlx5_create_mkey_mbox_out out;
|
||||||
unsigned long start;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct mlx5_ib_fast_reg_page_list {
|
struct mlx5_ib_fast_reg_page_list {
|
||||||
|
@ -146,7 +146,6 @@ static int add_keys(struct mlx5_ib_dev *dev, int c, int num)
|
|||||||
spin_lock_irq(&ent->lock);
|
spin_lock_irq(&ent->lock);
|
||||||
ent->pending++;
|
ent->pending++;
|
||||||
spin_unlock_irq(&ent->lock);
|
spin_unlock_irq(&ent->lock);
|
||||||
mr->start = jiffies;
|
|
||||||
err = mlx5_core_create_mkey(&dev->mdev, &mr->mmr, in,
|
err = mlx5_core_create_mkey(&dev->mdev, &mr->mmr, in,
|
||||||
sizeof(*in), reg_mr_callback,
|
sizeof(*in), reg_mr_callback,
|
||||||
mr, &mr->out);
|
mr, &mr->out);
|
||||||
|
Loading…
Reference in New Issue
Block a user