diff options
author | YueHaibing | 2019-02-20 12:32:02 +0000 |
---|---|---|
committer | David Sterba | 2019-02-25 14:19:23 +0100 |
commit | f65e25e343cfc0e6f4db9a687c4085fad268325d (patch) | |
tree | 6cc60e13debb16510fe5387ff6932a4e99dd7f81 /include/uapi | |
parent | 253002f2e3f4e2bbb0cbdd9e9fe2f5b9ec88f694 (diff) |
btrfs: Remove unnecessary casts in btrfs_read_root_item
There is a messy cast here:
min_t(int, len, (int)sizeof(*item)));
min_t() should normally cast to unsigned. It's not possible for "len"
to be negative, but if it were then we definitely wouldn't want to pass
negatives to read_extent_buffer(). Also there is an extra cast.
This patch shouldn't affect runtime, it's just a clean up.
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions