IB/netlink: Remove superfluous RDMA_NL_GET_OP() masking

'op' is the already RDMA_NL_GET_OP() masked 'type'.  No need to mask it again.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Reviewed-by: Yann Droneaud <ydroneaud@opteya.com>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
Mathias Krause 2013-09-30 22:03:54 +02:00 коммит произвёл Roland Dreier
Родитель 6b7d103c1b
Коммит 5476781bb9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -148,7 +148,7 @@ static int ibnl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
list_for_each_entry(client, &client_list, list) { list_for_each_entry(client, &client_list, list) {
if (client->index == index) { if (client->index == index) {
if (op < 0 || op >= client->nops || if (op < 0 || op >= client->nops ||
!client->cb_table[RDMA_NL_GET_OP(op)].dump) !client->cb_table[op].dump)
return -EINVAL; return -EINVAL;
{ {