diff options
author | Mathias Krause <minipli@googlemail.com> | 2013-09-30 22:03:54 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-11-08 14:42:54 -0800 |
commit | 5476781bb9e273d81a4192be47101811e987114f (patch) | |
tree | 56ccd8a22c3442bc5234d7386b179dcea4c634ad /drivers/infiniband/core/netlink.c | |
parent | 6b7d103c1b11346499063d9167832596de754ea4 (diff) | |
download | linux-stable-5476781bb9e273d81a4192be47101811e987114f.tar.gz linux-stable-5476781bb9e273d81a4192be47101811e987114f.tar.bz2 linux-stable-5476781bb9e273d81a4192be47101811e987114f.zip |
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>
Diffstat (limited to 'drivers/infiniband/core/netlink.c')
-rw-r--r-- | drivers/infiniband/core/netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/netlink.c b/drivers/infiniband/core/netlink.c index da06abde9e0d..a1e9cba84944 100644 --- a/drivers/infiniband/core/netlink.c +++ b/drivers/infiniband/core/netlink.c @@ -148,7 +148,7 @@ static int ibnl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) list_for_each_entry(client, &client_list, list) { if (client->index == index) { if (op < 0 || op >= client->nops || - !client->cb_table[RDMA_NL_GET_OP(op)].dump) + !client->cb_table[op].dump) return -EINVAL; { |