staging: gasket: page_table: remove unnecessary PTE status set to free
Remove unnecessary ptes[i].status update in gasket_perform_unmapping. The vaaue will be cleared in the following memset. Signed-off-by: Nick Ewalt <nicholasewalt@google.com> Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
02d3718633
commit
efa5dcfa8f
|
@ -623,7 +623,6 @@ static void gasket_perform_unmapping(struct gasket_page_table *pg_tbl,
|
|||
if (gasket_release_page(ptes[i].page))
|
||||
--pg_tbl->num_active_pages;
|
||||
}
|
||||
ptes[i].status = PTE_FREE;
|
||||
|
||||
/* and clear the PTE. */
|
||||
memset(&ptes[i], 0, sizeof(struct gasket_page_table_entry));
|
||||
|
|
Loading…
Reference in New Issue