]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/uverbs: Convert command mask validity check function to be bool
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 21 Feb 2018 16:12:31 +0000 (18:12 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 23 Feb 2018 03:29:10 +0000 (22:29 -0500)
commit13967692df34b309146521537a0a509ecb35fbd3
tree70df7899e41cf7f08cd47488bb68f89674c499f4
parentbb99abb251a63741bb417ae213c4c5a0e4264347
RDMA/uverbs: Convert command mask validity check function to be bool

The function validate_command_mask() returns only two results: success
or failure, so convert it to return bool instead of 0 and -1.

Reported-by: Noa Osherovich <noaos@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_main.c