diff options
| author | Jeff Layton <[email protected]> | 2019-04-02 19:58:05 +0000 |
|---|---|---|
| committer | Ilya Dryomov <[email protected]> | 2019-05-07 17:22:38 +0000 |
| commit | 1199d7da2d29dac5e3983ea1078dbd4ab107e33f (patch) | |
| tree | 38dae5f4e59d7dd8340ad76e185fad11d996bccd /lib/test_stackinit.c | |
| parent | ceph: fix comment over ceph_drop_caps_for_unlink (diff) | |
| download | kernel-1199d7da2d29dac5e3983ea1078dbd4ab107e33f.tar.gz kernel-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 <[email protected]>
Reviewed-by: "Yan, Zheng" <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions
