diff options
Diffstat (limited to 'drivers/dax/super.c')
-rw-r--r-- | drivers/dax/super.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/dax/super.c b/drivers/dax/super.c index 473af694ad1c..ecdc292aa4e4 100644 --- a/drivers/dax/super.c +++ b/drivers/dax/super.c | |||
@@ -246,12 +246,6 @@ long dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, long nr_pages, | |||
246 | { | 246 | { |
247 | long avail; | 247 | long avail; |
248 | 248 | ||
249 | /* | ||
250 | * The device driver is allowed to sleep, in order to make the | ||
251 | * memory directly accessible. | ||
252 | */ | ||
253 | might_sleep(); | ||
254 | |||
255 | if (!dax_dev) | 249 | if (!dax_dev) |
256 | return -EOPNOTSUPP; | 250 | return -EOPNOTSUPP; |
257 | 251 | ||