diff options
Diffstat (limited to 'drivers/infiniband/core/netlink.c')
-rw-r--r-- | drivers/infiniband/core/netlink.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/core/netlink.c b/drivers/infiniband/core/netlink.c index 724f5a62e82f..eecfc0b377c9 100644 --- a/drivers/infiniband/core/netlink.c +++ b/drivers/infiniband/core/netlink.c | |||
@@ -56,7 +56,6 @@ EXPORT_SYMBOL(rdma_nl_chk_listeners); | |||
56 | static bool is_nl_msg_valid(unsigned int type, unsigned int op) | 56 | static bool is_nl_msg_valid(unsigned int type, unsigned int op) |
57 | { | 57 | { |
58 | static const unsigned int max_num_ops[RDMA_NL_NUM_CLIENTS] = { | 58 | static const unsigned int max_num_ops[RDMA_NL_NUM_CLIENTS] = { |
59 | [RDMA_NL_RDMA_CM] = RDMA_NL_RDMA_CM_NUM_OPS, | ||
60 | [RDMA_NL_IWCM] = RDMA_NL_IWPM_NUM_OPS, | 59 | [RDMA_NL_IWCM] = RDMA_NL_IWPM_NUM_OPS, |
61 | [RDMA_NL_LS] = RDMA_NL_LS_NUM_OPS, | 60 | [RDMA_NL_LS] = RDMA_NL_LS_NUM_OPS, |
62 | [RDMA_NL_NLDEV] = RDMA_NLDEV_NUM_OPS, | 61 | [RDMA_NL_NLDEV] = RDMA_NLDEV_NUM_OPS, |
@@ -181,8 +180,7 @@ static int rdma_nl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, | |||
181 | return -EINVAL; | 180 | return -EINVAL; |
182 | } | 181 | } |
183 | /* FIXME: Convert IWCM to properly handle doit callbacks */ | 182 | /* FIXME: Convert IWCM to properly handle doit callbacks */ |
184 | if ((nlh->nlmsg_flags & NLM_F_DUMP) || index == RDMA_NL_RDMA_CM || | 183 | if ((nlh->nlmsg_flags & NLM_F_DUMP) || index == RDMA_NL_IWCM) { |
185 | index == RDMA_NL_IWCM) { | ||
186 | struct netlink_dump_control c = { | 184 | struct netlink_dump_control c = { |
187 | .dump = cb_table[op].dump, | 185 | .dump = cb_table[op].dump, |
188 | }; | 186 | }; |