summaryrefslogtreecommitdiff
path: root/drivers/xen
diff options
context:
space:
mode:
authorLisa Nguyen <lisa@xenapiadmin.com>2013-05-16 09:59:40 +0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2013-05-20 22:14:48 +0400
commitfce92683570c2ddcdb82cde67b0b07800106fbd9 (patch)
tree76e6235681ed4376ffa6659896e451f453219d79 /drivers/xen
parent3d645b02d9c6254caf51d9d78e6d9caf72990b33 (diff)
downloadlinux-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/xen')
-rw-r--r--drivers/xen/balloon.c3
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;