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 <email@example.com>
Reviewed-by: Qu Wenruo <firstname.lastname@example.org>
Signed-off-by: YueHaibing <email@example.com>
Signed-off-by: David Sterba <firstname.lastname@example.org>
1 file changed