]> git.baikalelectronics.ru Git - kernel.git/commit
xen: simplify balloon_first_page() with list_first_entry_or_null()
authorJie Liu <jeff.liu@oracle.com>
Wed, 13 Nov 2013 12:59:58 +0000 (20:59 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 6 Jan 2014 15:07:29 +0000 (10:07 -0500)
commit15fcd82b38a814500da0ad39ee29a0fab073f133
tree4597a6c868c0e106dc19058df0efaaea1a6b2eb0
parent1f65a204095a11629c21d553dda5f97321a6cecf
xen: simplify balloon_first_page() with list_first_entry_or_null()

Replace the code logic at balloon_first_page() by calling
list_first_entry_or_null() directly.  since here is only
one user of that routine, therefore we can just remove it.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/balloon.c