Skip to content
Commit 214cc184 authored by David Sterba's avatar David Sterba
Browse files

btrfs: constify and cleanup variables in comparators



Comparators just read the data and thus get const parameters. This
should be also preserved by the local variables, update all comparators
passed to sort or bsearch.

Cleanups:

- unnecessary casts are dropped
- btrfs_cmp_device_free_bytes is cleaned up to follow the common pattern
  and 'inline' is dropped as the function address is taken

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent d58ede8d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment