OSDN Git Service

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)
commit97202bbe22f8f0c225ba63a50acaf56d6796c990
treeb1502a4b27a6340cfc7b0c57c04e188cfdded372
parent60e6627f12a78203a093ca05b7bca15627747d81
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