aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-02-20 12:32:02 +0000
committerDavid Sterba <dsterba@suse.com>2019-02-25 14:19:23 +0100
commitf65e25e343cfc0e6f4db9a687c4085fad268325d (patch)
tree6cc60e13debb16510fe5387ff6932a4e99dd7f81 /fs/btrfs/compression.h
parentBtrfs: remove assertion when searching for a key in a node/leaf (diff)
downloadlinux-dev-f65e25e343cfc0e6f4db9a687c4085fad268325d.tar.xz
linux-dev-f65e25e343cfc0e6f4db9a687c4085fad268325d.zip
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 'fs/btrfs/compression.h')
0 files changed, 0 insertions, 0 deletions