projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d09705
)
mm/mlock.c: drop unneeded initialization in munlock_vma_pages_range()
author
Alexey Klimov
<
[email protected]
>
Thu, 14 Jan 2016 23:18:24 +0000
(15:18 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 15 Jan 2016 00:00:49 +0000
(16:00 -0800)
Before usage page pointer initialized by NULL is reinitialized by
follow_page_mask(). Drop useless init of page pointer in the beginning
of loop.
Signed-off-by: Alexey Klimov <
[email protected]
>
Acked-by: Vlastimil Babka <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/mlock.c
patch
|
blob
|
history
diff --git
a/mm/mlock.c
b/mm/mlock.c
index 339d9e0949b6d63a1b81af1e121c1858af77f472..9cb87cbc40715c72261189822aa43b3b30ecd284 100644
(file)
--- a/
mm/mlock.c
+++ b/
mm/mlock.c
@@
-425,7
+425,7
@@
void munlock_vma_pages_range(struct vm_area_struct *vma,
vma->vm_flags &= VM_LOCKED_CLEAR_MASK;
while (start < end) {
- struct page *page
= NULL
;
+ struct page *page;
unsigned int page_mask;
unsigned long page_increm;
struct pagevec pvec;