diff options
author | Mike Rapoport <rppt@linux.vnet.ibm.com> | 2017-07-06 15:38:35 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-06 16:24:33 -0700 |
commit | f93ae36462091eca8c8d70ced64b97056a8ecbd6 (patch) | |
tree | 628e94206b84a04df21c1080a8575809588d84a5 /fs | |
parent | 57ecbd3831ee3ad43914d5c9dddbff7ce30e3d42 (diff) | |
download | op-kernel-dev-f93ae36462091eca8c8d70ced64b97056a8ecbd6.zip op-kernel-dev-f93ae36462091eca8c8d70ced64b97056a8ecbd6.tar.gz |
fs/userfaultfd.c: drop dead code
Calculation of start end end in __wake_userfault function are not used
and can be removed.
Link: http://lkml.kernel.org/r/1494930917-3134-1-git-send-email-rppt@linux.vnet.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/userfaultfd.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c index 6148ccd..3d0dd08 100644 --- a/fs/userfaultfd.c +++ b/fs/userfaultfd.c @@ -1114,11 +1114,6 @@ static ssize_t userfaultfd_read(struct file *file, char __user *buf, static void __wake_userfault(struct userfaultfd_ctx *ctx, struct userfaultfd_wake_range *range) { - unsigned long start, end; - - start = range->start; - end = range->start + range->len; - spin_lock(&ctx->fault_pending_wqh.lock); /* wake all in the range and autoremove */ if (waitqueue_active(&ctx->fault_pending_wqh)) |