diff options
author | Lisa Nguyen <lisa@xenapiadmin.com> | 2013-05-16 07:59:40 +0200 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-05-20 20:14:48 +0200 |
commit | fce92683570c2ddcdb82cde67b0b07800106fbd9 (patch) | |
tree | 76e6235681ed4376ffa6659896e451f453219d79 | |
parent | xen/xenbus: Fixed over 80 character limit issue (diff) | |
download | linux-fce92683570c2ddcdb82cde67b0b07800106fbd9.tar.xz linux-fce92683570c2ddcdb82cde67b0b07800106fbd9.zip |
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>
-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) 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; |