Skip to contentSkip to conversation

userfaultfd: drop dead code

PATCH Applied Mike Rapoport 1 participant 1 message May 16, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 userfaultfd: drop dead code

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

---
 fs/userfaultfd.c | 5 -----
 1 file changed, 5 deletions(-)
fs/userfaultfd.c +0 -5
index f7555fc..1446e9d 100644
@@ -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>