1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdm: dm_stats_start_filemapd() mode can never be < 0

This commit is contained in:
Bryn M. Reeves 2017-03-10 14:42:23 +00:00
parent bc3bec6c54
commit 93644be44b

View File

@ -4948,8 +4948,7 @@ int dm_stats_start_filemapd(int fd, uint64_t group_id, const char *path,
return 0;
}
if (mode < DM_FILEMAPD_FOLLOW_INODE
|| mode > DM_FILEMAPD_FOLLOW_PATH) {
if (mode > DM_FILEMAPD_FOLLOW_PATH) {
log_error("Invalid dmfilemapd mode argument: "
"Must be DM_FILEMAPD_FOLLOW_INODE or "
"DM_FILEMAPD_FOLLOW_PATH");