IB/mlx5: Remove dead code in mr.c

In mlx5_mr_cache_init() the size variable is not used so remove it to
avoid compiler warnings when running with make W=1.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
Eli Cohen 2013-10-24 12:01:00 +03:00 committed by Roland Dreier
parent 4e3d677ba9
commit 2d036fad94

View File

@ -40,7 +40,6 @@
#include "mlx5_ib.h" #include "mlx5_ib.h"
enum { enum {
DEF_CACHE_SIZE = 10,
MAX_PENDING_REG_MR = 8, MAX_PENDING_REG_MR = 8,
}; };
@ -550,7 +549,6 @@ int mlx5_mr_cache_init(struct mlx5_ib_dev *dev)
struct mlx5_mr_cache *cache = &dev->cache; struct mlx5_mr_cache *cache = &dev->cache;
struct mlx5_cache_ent *ent; struct mlx5_cache_ent *ent;
int limit; int limit;
int size;
int err; int err;
int i; int i;
@ -571,13 +569,11 @@ int mlx5_mr_cache_init(struct mlx5_ib_dev *dev)
ent->order = i + 2; ent->order = i + 2;
ent->dev = dev; ent->dev = dev;
if (dev->mdev.profile->mask & MLX5_PROF_MASK_MR_CACHE) { if (dev->mdev.profile->mask & MLX5_PROF_MASK_MR_CACHE)
size = dev->mdev.profile->mr_cache[i].size;
limit = dev->mdev.profile->mr_cache[i].limit; limit = dev->mdev.profile->mr_cache[i].limit;
} else { else
size = DEF_CACHE_SIZE;
limit = 0; limit = 0;
}
INIT_WORK(&ent->work, cache_work_func); INIT_WORK(&ent->work, cache_work_func);
INIT_DELAYED_WORK(&ent->dwork, delayed_cache_work_func); INIT_DELAYED_WORK(&ent->dwork, delayed_cache_work_func);
ent->limit = limit; ent->limit = limit;