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:
parent
4b9e917822
commit
8f478ec2b3
|
|
@ -42,7 +42,7 @@ static const char *caps_to_str(uint32_t idx)
|
|||
x(CAP_MASK_NOTICE, 22) \
|
||||
x(BOOT_MGMT, 23) \
|
||||
x(LINK_LATENCY, 24) \
|
||||
x(CLIENT_REG, 23) \
|
||||
x(CLIENT_REG, 25) \
|
||||
x(IP_BASED_GIDS, 26)
|
||||
|
||||
enum { RDMA_PORT_FLAGS(RDMA_BITMAP_ENUM) };
|
||||
|
|
|
|||
Loading…
Reference in New Issue