userfaultfd: drop dead code
Subsystems (2)
PATCH 1/1 userfaultfd: drop dead code
Calculation of start end end in __wake_userfault function are not used and can be removed.
Signed-off-by Mike Rapoport <[email protected]>
--- fs/userfaultfd.c | 5 ----- 1 file changed, 5 deletions(-)
fs/userfaultfd.c +0 -5
@@ -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))
Signature · 7 lines
2.7.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>