staging: gasket: page_table: remove unnecessary PTE status set to free
authorNick Ewalt <nicholasewalt@google.com>
Mon, 15 Oct 2018 04:59:20 +0000 (21:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Oct 2018 14:30:37 +0000 (16:30 +0200)
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>
drivers/staging/gasket/gasket_page_table.c

index 985a3a9..d2e115d 100644 (file)
@@ -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));