From 61ff95170a1dd37e85783c24976a424e3a1a618c Mon Sep 17 00:00:00 2001 From: Mike Snitzer Date: Mon, 5 Aug 2013 16:25:56 -0400 Subject: [PATCH 5/9] dm stats: remove all the duplicate dm_request_based() checks --- drivers/md/dm-stats.c | 15 --------------- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/drivers/md/dm-stats.c b/drivers/md/dm-stats.c index a6f5b89..d27bb0e 100644 --- a/drivers/md/dm-stats.c +++ b/drivers/md/dm-stats.c @@ -668,9 +668,6 @@ static int message_stats_create(struct mapped_device *md, unsigned div; const char *program, *aux; - if (dm_request_based(md)) - return -EOPNOTSUPP; - if (argc < 3 || argc > 5) return -EINVAL; @@ -733,9 +730,6 @@ static int message_stats_delete(struct mapped_device *md, int id; char dummy; - if (dm_request_based(md)) - return -EOPNOTSUPP; - if (argc != 2) return -EINVAL; @@ -752,9 +746,6 @@ static int message_stats_list(struct mapped_device *md, const char *program = NULL; int r; - if (dm_request_based(md)) - return -EOPNOTSUPP; - if (argc < 1 || argc > 2) return -EINVAL; @@ -779,9 +770,6 @@ static int message_stats_print(struct mapped_device *md, char dummy; unsigned long idx_start = 0, idx_len = -1; - if (dm_request_based(md)) - return -EOPNOTSUPP; - if (argc != 2 && argc != 4) return -EINVAL; @@ -807,9 +795,6 @@ static int message_stats_set_aux(struct mapped_device *md, int id; char dummy; - if (dm_request_based(md)) - return -EOPNOTSUPP; - if (argc != 3) return -EINVAL; -- 1.7.1