]> git.baikalelectronics.ru Git - kernel.git/commit
IB/uverbs: Do not use uverbs_cmd_mask in the ioctl path
authorJason Gunthorpe <jgg@mellanox.com>
Fri, 6 Jul 2018 17:42:03 +0000 (11:42 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 9 Jul 2018 19:19:01 +0000 (13:19 -0600)
commit292d907399da6169bca4a3fe405fd53bd0c5d08b
treeb1502a4b27a6340cfc7b0c57c04e188cfdded372
parent63c3beee5deba892a4b15ccb1472739968c1efe3
IB/uverbs: Do not use uverbs_cmd_mask in the ioctl path

Instead we are now checking the function pointers directly. Get rid of
both cases in ioctl and drop the nonsense idea that destroy can fail.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/core/uverbs_std_types_cq.c