]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: fix duplicate initialization in port_names
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Aug 2017 22:00:59 +0000 (15:00 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Aug 2017 22:02:16 +0000 (15:02 -0700)
commit8f478ec2b3dabdc5d667a0de8997c5660e2b118d
tree4df1b45006aa52eaa594beb5a1d8c3e5f8e78579
parent4b9e91782269fc871d158ed4f11bfcfe4e3b8bf7
rdma: fix duplicate initialization in port_names

Build with warnings enable spotted this.
link.c:51:58: note: (near initialization for ‘rdma_port_names[23]’)
   rdma_port_names[] = { RDMA_PORT_FLAGS(RDMA_BITMAP_NAMES) };

Assume that fields were in order and 25 is the missing value.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/link.c