Skip to content

Commit

Permalink
IB/mlx4: Fix an incorrectly shadowed variable in mlx4_ib_rereg_user_mr
Browse files Browse the repository at this point in the history
This error was detected by sparse static checker:

    drivers/infiniband/hw/mlx4/mr.c:226:21: warning: symbol 'err' shadows an earlier one
    drivers/infiniband/hw/mlx4/mr.c:197:13: originally declared here

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
  • Loading branch information
Jack Morgenstein authored and Roland Dreier committed Dec 16, 2014
1 parent 70e71ca commit 9f35e89
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/infiniband/hw/mlx4/mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ int mlx4_ib_rereg_user_mr(struct ib_mr *mr, int flags,

if (flags & IB_MR_REREG_TRANS) {
int shift;
int err;
int n;

mlx4_mr_rereg_mem_cleanup(dev->dev, &mmr->mmr);
Expand Down

0 comments on commit 9f35e89

Please sign in to comment.