diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2016-01-19 10:11:24 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-01-19 21:24:54 +0100 |
commit | 50ca6ed21e7c389c250ee30b0bb4df66157a1115 (patch) | |
tree | c75e554ce2ff15a324caf9e260815b046b4a5dd5 /drivers | |
parent | net/mlx4: Remove unused macro (diff) | |
download | linux-50ca6ed21e7c389c250ee30b0bb4df66157a1115.tar.xz linux-50ca6ed21e7c389c250ee30b0bb4df66157a1115.zip |
IB/mlx5: Delete locally redefined variable
Fix the following sparse warning:
drivers/infiniband/hw/mlx5/main.c:1061:29: warning: symbol 'pfn' shadows
an earlier one
drivers/infiniband/hw/mlx5/main.c:1030:21: originally declared here
Fixes: d69e3bcf7976 ('IB/mlx5: Mmap the HCA's core clock register to user-space')
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 155dbe3826f8..5dffb9e6abec 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -1057,9 +1057,6 @@ static int mlx5_ib_mmap(struct ib_ucontext *ibcontext, struct vm_area_struct *vm return -ENOSYS; case MLX5_IB_MMAP_CORE_CLOCK: - { - phys_addr_t pfn; - if (vma->vm_end - vma->vm_start != PAGE_SIZE) return -EINVAL; @@ -1082,7 +1079,6 @@ static int mlx5_ib_mmap(struct ib_ucontext *ibcontext, struct vm_area_struct *vm vma->vm_start, (unsigned long long)pfn << PAGE_SHIFT); break; - } default: return -EINVAL; |