@@ -961,7 +961,6 @@ static void hvfb_get_option(struct fb_info *info)
static phys_addr_t hvfb_get_phymem(struct hv_device *hdev,
unsigned int request_size)
{
- struct page *page = NULL;
dma_addr_t dma_handle;
void *vmem;
phys_addr_t paddr = 0;
@@ -972,7 +971,7 @@ static phys_addr_t hvfb_get_phymem(struct hv_device *hdev,
if (order < MAX_ORDER) {
/* Call alloc_pages if the size is less than 2^MAX_ORDER */
- page = alloc_pages(GFP_KERNEL | __GFP_ZERO, order);
+ struct page *page = alloc_pages(GFP_KERNEL | __GFP_ZERO, order);
if (!page)
return -1;