Commit f93ae364 authored by Mike Rapoport's avatar Mike Rapoport Committed by Linus Torvalds
Browse files

fs/userfaultfd.c: drop dead code

Calculation of start end end in __wake_userfault function are not used
and can be removed.


Signed-off-by: default avatarMike Rapoport <>
Cc: Andrea Arcangeli <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 57ecbd38
......@@ -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;
/* wake all in the range and autoremove */
if (waitqueue_active(&ctx->fault_pending_wqh))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment