Skip to content

Commit

Permalink
mlx4_core: Remove unused doorbell_lock
Browse files Browse the repository at this point in the history
struct mlx4_priv.doorbell_lock is never used, so delete it.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Roland Dreier committed May 13, 2007
1 parent f550d94 commit 20eebcf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/net/mlx4/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,6 @@ static int __devinit mlx4_setup_hca(struct mlx4_dev *dev)
struct mlx4_priv *priv = mlx4_priv(dev);
int err;

MLX4_INIT_DOORBELL_LOCK(&priv->doorbell_lock);

err = mlx4_init_uar_table(dev);
if (err) {
mlx4_err(dev, "Failed to initialize "
Expand Down
1 change: 0 additions & 1 deletion drivers/net/mlx4/mlx4.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ struct mlx4_priv {

struct mlx4_uar driver_uar;
void __iomem *kar;
MLX4_DECLARE_DOORBELL_LOCK(doorbell_lock)

u32 rev_id;
char board_id[MLX4_BOARD_ID_LEN];
Expand Down

0 comments on commit 20eebcf

Please sign in to comment.