IB/mlx5: Fix duplicate const warning
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 11:32:47 +0000 (11:32 +0000)
committerDoug Ledford <dledford@redhat.com>
Tue, 2 Aug 2016 17:00:33 +0000 (13:00 -0400)
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>
drivers/infiniband/hw/mlx5/main.c

index 11e48665d9530043a4d6050b880aec0151737a5d..1354722e97c51037f3a7b5b4a95343514022e216 100644 (file)
@@ -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",
This page took 0.026671 seconds and 5 git commands to generate.