diff options
author | Jeff Layton <jlayton@kernel.org> | 2019-06-24 07:39:18 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-07-08 14:01:44 +0200 |
commit | f1d1b51deabbd1e7b8c24883145fbf784784d250 (patch) | |
tree | 711ff8cc400436b0d2602aa244c9240d1134e8e5 /tools/perf/scripts/python/intel-pt-events.py | |
parent | 49ada6e8dc9f64ad1e8dd6f7b453c9e584e9f897 (diff) |
ceph: make getxattr_cb return ssize_t
The getxattr_cb functions return size_t, which is unsigned and then
cast that value to int and then ssize_t before returning it. While all
of this works, it relies on implicit casting rules for signed/unsigned
conversions.
Change getxattr_cb to return ssize_t to better conform with what the
caller actually wants. Also, remove some suspicious casts.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Acked-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions