warnings: fix broken -Wmaybe-uninitialized

These variables cannot be used uninitialized, and newer gcc versions
correctly do not bring the warning up, but this will shut up older ones

Change-Id: I2b2ea9b557196a3e7eea1e04dd1f160bd12d6e54
This commit is contained in:
Dominique Martinet
2019-03-04 13:34:00 +09:00
committed by Dominique Martinet
parent ab39798181
commit 76a0cc71fc
3 changed files with 4 additions and 4 deletions

View File

@ -1621,7 +1621,7 @@ static int clear_range_l3(void *args0, pte_t *ptep, uint64_t base,
{
struct clear_range_args *args = args0;
int error;
uint64_t phys;
uint64_t phys = 0;
pte_t old;
struct page *page;
struct page_table *pt;