diff options
author | Lisa Nguyen <lisa@xenapiadmin.com> | 2013-05-16 05:59:40 (GMT) |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-05-20 18:14:48 (GMT) |
commit | fce92683570c2ddcdb82cde67b0b07800106fbd9 (patch) | |
tree | 76e6235681ed4376ffa6659896e451f453219d79 /drivers | |
parent | 3d645b02d9c6254caf51d9d78e6d9caf72990b33 (diff) | |
download | linux-fsl-qoriq-fce92683570c2ddcdb82cde67b0b07800106fbd9.tar.xz |
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')
-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 a56776d..930fb68 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; |