IB/core: Remove unnecessary check in ibnl_rcv_msg
authorMark Bloch <markb@mellanox.com>
Fri, 6 May 2016 19:45:25 +0000 (22:45 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:40:01 +0000 (19:40 -0400)
commit1ae5ccc78105490cd1f73bdf4847e7c6d03f0aa1
treef7ec91aca1a3518cb305abcb803e8f7943b939e7
parent5ed935e861a4cbf2158ad3386d6d26edd60d2658
IB/core: Remove unnecessary check in ibnl_rcv_msg

RDMA_NL_GET_OP is defined like this: (type & ((1 << 10) - 1))
which means op (defined as an int) can never be a negative number.

Fixes: b2cbae2c2487 ('RDMA: Add netlink infrastructure')
Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/netlink.c
This page took 0.038107 seconds and 5 git commands to generate.