Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
6e501cc8
Commit
6e501cc8
authored
Feb 24, 2003
by
Andrew Morton
Committed by
Jeff Garzik
Feb 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Remove redundant check in pte_alloc_map()
This check is not needed - the PMD is known to be present.
parent
3e38f30e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
mm/memory.c
mm/memory.c
+1
-3
No files found.
mm/memory.c
View file @
6e501cc8
...
...
@@ -158,9 +158,7 @@ pte_t * pte_alloc_map(struct mm_struct *mm, pmd_t *pmd, unsigned long address)
pmd_populate
(
mm
,
pmd
,
new
);
}
out:
if
(
pmd_present
(
*
pmd
))
return
pte_offset_map
(
pmd
,
address
);
return
NULL
;
return
pte_offset_map
(
pmd
,
address
);
}
pte_t
*
pte_alloc_kernel
(
struct
mm_struct
*
mm
,
pmd_t
*
pmd
,
unsigned
long
address
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment