summary refs log tree commit diff
path: root/drivers/infiniband/hw/mlx5
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2016-07-12 11:32:47 +0000
committerDoug Ledford <dledford@redhat.com>2016-08-02 13:00:33 -0400
commit619615005e2f23e8f8b30142a074c005eb5aa063 (patch)
tree108be6e16ca0dbffa902e04fc5063c4bf16db67b /drivers/infiniband/hw/mlx5
parent0ad17a8f7fa000cbfc51eedd7fddd20f7664e4b6 (diff)
downloadlinux-619615005e2f23e8f8b30142a074c005eb5aa063.tar.gz
IB/mlx5: Fix duplicate const warning
Fixes the following sparse warning:

drivers/infiniband/hw/mlx5/main.c:2574:25: warning: duplicate const

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5')
-rw-r--r--drivers/infiniband/hw/mlx5/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index 11e48665d953..1354722e97c5 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -2576,7 +2576,7 @@ dealloc_counters:
 	return ret;
 }
 
-static const char const *names[] = {
+static const char * const names[] = {
 	"rx_write_requests",
 	"rx_read_requests",
 	"rx_atomic_requests",