Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

virtio_balloon: Use outer variable 'page'

There is no need to define a local variable 'page',
just use outer variable 'page'.

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Message-Id: <20241120054920.35291-1-zhangjiao2@cmss.chinamobile.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>

authored by

zhang jiao and committed by
Michael S. Tsirkin
302b49da b989531e

+1 -1
+1 -1
drivers/virtio/virtio_balloon.c
··· 251 251 252 252 for (num_pfns = 0; num_pfns < num; 253 253 num_pfns += VIRTIO_BALLOON_PAGES_PER_PAGE) { 254 - struct page *page = balloon_page_alloc(); 254 + page = balloon_page_alloc(); 255 255 256 256 if (!page) { 257 257 dev_info_ratelimited(&vb->vdev->dev,