tree-wide: CMP()ify all the things

Let's employ coccinelle to fix everything up automatically for us.
This commit is contained in:
Lennart Poettering
2018-10-16 17:45:53 +02:00
parent f7eed93f15
commit 6dd91b3682
8 changed files with 40 additions and 67 deletions
+1 -6
View File
@@ -418,12 +418,7 @@ static int btrfs_ioctl_search_args_compare(const struct btrfs_ioctl_search_args
if (args->key.min_type > args->key.max_type)
return 1;
if (args->key.min_offset < args->key.max_offset)
return -1;
if (args->key.min_offset > args->key.max_offset)
return 1;
return 0;
return CMP(args->key.min_offset, args->key.max_offset);
}
#define FOREACH_BTRFS_IOCTL_SEARCH_HEADER(i, sh, args) \