diff options
author | Lisa Nguyen <lisa@xenapiadmin.com> | 2013-05-16 01:59:40 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-05-20 14:14:48 -0400 |
commit | fce92683570c2ddcdb82cde67b0b07800106fbd9 (patch) | |
tree | 76e6235681ed4376ffa6659896e451f453219d79 /drivers/xen | |
parent | 3d645b02d9c6254caf51d9d78e6d9caf72990b33 (diff) |
xen: Fixed assignment error in if statement
Fixed assignment error in if statement in balloon.c
Signed-off-by: Lisa Nguyen <lisa@xenapiadmin.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/balloon.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
407 | nr_pages = ARRAY_SIZE(frame_list); | 407 | nr_pages = ARRAY_SIZE(frame_list); |
408 | 408 | ||
409 | for (i = 0; i < nr_pages; i++) { | 409 | for (i = 0; i < nr_pages; i++) { |
410 | if ((page = alloc_page(gfp)) == NULL) { | 410 | page = alloc_page(gfp); |
411 | if (page == NULL) { | ||
411 | nr_pages = i; | 412 | nr_pages = i; |
412 | state = BP_EAGAIN; | 413 | state = BP_EAGAIN; |
413 | break; | 414 | break; |