diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2020-04-19 11:34:00 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-05-15 17:29:36 +0300 |
commit | 499c18045eab16656ef4159c35b05865038f9f25 (patch) | |
tree | 8a75e3e0aac5ee7b8cd48f7b6c4b52986c12e997 /drivers/md/dm-writecache.c | |
parent | 9431cf6efc3659eaa1cdd591e02a09045bc9983f (diff) | |
download | linux-499c18045eab16656ef4159c35b05865038f9f25.tar.xz |
dm writecache: remove superfluous test in persistent_memory_claim
Remove superfluous test if dax_dev is NULL - dax_direct_access already
does this test.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-writecache.c')
-rw-r--r-- | drivers/md/dm-writecache.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/md/dm-writecache.c b/drivers/md/dm-writecache.c index 613c171b1b6d..d29d3e234e01 100644 --- a/drivers/md/dm-writecache.c +++ b/drivers/md/dm-writecache.c @@ -234,10 +234,6 @@ static int persistent_memory_claim(struct dm_writecache *wc) wc->memory_vmapped = false; - if (!wc->ssd_dev->dax_dev) { - r = -EOPNOTSUPP; - goto err1; - } s = wc->memory_map_size; p = s >> PAGE_SHIFT; if (!p) { |