diff options
author | Jeff Layton <jlayton@kernel.org> | 2019-04-02 15:58:05 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-05-07 19:22:38 +0200 |
commit | 1199d7da2d29dac5e3983ea1078dbd4ab107e33f (patch) | |
tree | 38dae5f4e59d7dd8340ad76e185fad11d996bccd /samples | |
parent | a452bc0636728b8c12632ae4b5f4ddf39cbe39c1 (diff) | |
download | linux-1199d7da2d29dac5e3983ea1078dbd4ab107e33f.tar.gz linux-1199d7da2d29dac5e3983ea1078dbd4ab107e33f.tar.bz2 linux-1199d7da2d29dac5e3983ea1078dbd4ab107e33f.zip |
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 'samples')
0 files changed, 0 insertions, 0 deletions