From: Lisa Nguyen Date: Thu, 16 May 2013 05:59:40 +0000 (-0700) Subject: xen: Fixed assignment error in if statement X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fce92683570c2ddcdb82cde67b0b07800106fbd9;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git xen: Fixed assignment error in if statement Fixed assignment error in if statement in balloon.c Signed-off-by: Lisa Nguyen Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c index a56776dbe095..930fb6817901 100644 --- a/drivers/xen/balloon.c +++ b/drivers/xen/balloon.c @@ -407,7 +407,8 @@ static enum bp_state decrease_reservation(unsigned long nr_pages, gfp_t gfp) nr_pages = ARRAY_SIZE(frame_list); for (i = 0; i < nr_pages; i++) { - if ((page = alloc_page(gfp)) == NULL) { + page = alloc_page(gfp); + if (page == NULL) { nr_pages = i; state = BP_EAGAIN; break;