aboutsummaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorYueHaibing <[email protected]>2019-02-20 12:32:02 +0000
committerDavid Sterba <[email protected]>2019-02-25 14:19:23 +0100
commitf65e25e343cfc0e6f4db9a687c4085fad268325d (patch)
tree6cc60e13debb16510fe5387ff6932a4e99dd7f81 /security/selinux/hooks.c
parent253002f2e3f4e2bbb0cbdd9e9fe2f5b9ec88f694 (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 <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: YueHaibing <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions