]> 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)
commitb5bc59818614a9d6d1fa2347b14dd52c4774fb70
tree70df7899e41cf7f08cd47488bb68f89674c499f4
parent4bb46608ed78758c89c77ae5d1163dce3df95950
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