summaryrefslogtreecommitdiff
path: root/crypto/cts.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2019-04-02 15:58:05 -0400
committerIlya Dryomov <idryomov@gmail.com>2019-05-07 19:22:38 +0200
commit1199d7da2d29dac5e3983ea1078dbd4ab107e33f (patch)
tree38dae5f4e59d7dd8340ad76e185fad11d996bccd /crypto/cts.c
parenta452bc0636728b8c12632ae4b5f4ddf39cbe39c1 (diff)
ceph: simplify arguments and return semantics of try_get_cap_refs
The return of this function is rather complex. It can return 0 or 1, and in the case of a 1 return, the "err" pointer will be filled out. This necessitates a lot of copying of values. We can achieve the same effect by just returning 0, 1 or a negative error code, and drop the "err" argument from this function. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'crypto/cts.c')
0 files changed, 0 insertions, 0 deletions