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>
This commit is contained in:
Stephen Hemminger 2017-08-24 15:00:59 -07:00
parent 4b9e917822
commit 8f478ec2b3
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ static const char *caps_to_str(uint32_t idx)
x(CAP_MASK_NOTICE, 22) \ x(CAP_MASK_NOTICE, 22) \
x(BOOT_MGMT, 23) \ x(BOOT_MGMT, 23) \
x(LINK_LATENCY, 24) \ x(LINK_LATENCY, 24) \
x(CLIENT_REG, 23) \ x(CLIENT_REG, 25) \
x(IP_BASED_GIDS, 26) x(IP_BASED_GIDS, 26)
enum { RDMA_PORT_FLAGS(RDMA_BITMAP_ENUM) }; enum { RDMA_PORT_FLAGS(RDMA_BITMAP_ENUM) };