mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
shmem: remove redundant code
prep_new_page() will call set_page_private(page, 0) to initialise the page, so the code is redundant. Signed-off-by: Huang Shijie <[email protected]> Reviewed-by: Minchan Kim <[email protected]> Acked-by: Hugh Dickins <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e48e67e08c
commit
4b50dc26a0
1 changed files with 0 additions and 2 deletions
|
|
@ -433,8 +433,6 @@ static swp_entry_t *shmem_swp_alloc(struct shmem_inode_info *info, unsigned long
|
|||
|
||||
spin_unlock(&info->lock);
|
||||
page = shmem_dir_alloc(mapping_gfp_mask(inode->i_mapping));
|
||||
if (page)
|
||||
set_page_private(page, 0);
|
||||
spin_lock(&info->lock);
|
||||
|
||||
if (!page) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue