Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5476781b authored by Mathias Krause's avatar Mathias Krause Committed by Roland Dreier
Browse files

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: default avatarMathias Krause <minipli@googlemail.com>
Reviewed-by: default avatarYann Droneaud <ydroneaud@opteya.com>
Acked-by: default avatarSean Hefty <sean.hefty@intel.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 6b7d103c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

			{