* [PATCH] userfaultfd: drop dead code
@ 2017-05-16 10:35 Mike Rapoport
0 siblings, 0 replies; only message in thread
From: Mike Rapoport @ 2017-05-16 10:35 UTC (permalink / raw)
To: Andrew Morton; +Cc: Andrea Arcangeli, linux-mm, lkml, Mike Rapoport
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-16 10:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-16 10:35 [PATCH] userfaultfd: drop dead code Mike Rapoport
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).