From 93644be44b4067c6ebc1d450589ca510129b3b60 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Fri, 10 Mar 2017 14:42:23 +0000 Subject: [PATCH] libdm: dm_stats_start_filemapd() mode can never be < 0 --- libdm/libdm-stats.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c index cff23d88f..61c052fc0 100644 --- a/libdm/libdm-stats.c +++ b/libdm/libdm-stats.c @@ -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");