Messages in this thread Patch in this message | | | From | "Mike Rapoport" <> | Subject | [PATCH] userfaultfd: drop dead code | Date | Tue, 16 May 2017 13:35:17 +0300 |
| |
Calculation of start end end in __wake_userfault function are not used and can be removed.
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> --- fs/userfaultfd.c | 5 ----- 1 file changed, 5 deletions(-)
diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c index f7555fc..1446e9d 100644 --- a/fs/userfaultfd.c +++ b/fs/userfaultfd.c @@ -1101,11 +1101,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)) -- 2.7.4
| |