]> git.karo-electronics.de Git - karo-tx-linux.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>
Fri, 3 Jan 2014 19:55:42 +0000 (14:55 -0500)
commit49843a0059c4fd093d36ee6c8c7449f7a80bc1b2
tree76303042e9c12e6731d69093a14f8d25f8fdb7c2
parent3c21850419aa4b0c2b629ab37a6f9c00837e1e1a
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