aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoremellor@ewan <emellor@ewan>2005-09-30 17:05:08 +0100
committeremellor@ewan <emellor@ewan>2005-09-30 17:05:08 +0100
commitdb730ecdd132306732846b1ec26d8c5a7a873563 (patch)
tree90a026d1fd60daa3dfad4eb808d11a6676d4c47e /tools
parent8a3d95851034b4e1d582380fae08e8c6f4f1192c (diff)
downloadxen-db730ecdd132306732846b1ec26d8c5a7a873563.tar.gz
xen-db730ecdd132306732846b1ec26d8c5a7a873563.tar.bz2
xen-db730ecdd132306732846b1ec26d8c5a7a873563.zip
Minor tidy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/xend/XendCheckpoint.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/python/xen/xend/XendCheckpoint.py b/tools/python/xen/xend/XendCheckpoint.py
index b0e1536a6a..9c38fab5b1 100644
--- a/tools/python/xen/xend/XendCheckpoint.py
+++ b/tools/python/xen/xend/XendCheckpoint.py
@@ -158,12 +158,12 @@ def restore(fd):
m = re.match(r"^(store-mfn) (\d+)\n$", l)
if m:
if dominfo.store_channel:
- dominfo.setStoreRef(int(m.group(2)))
- if dominfo.store_mfn >= 0:
- IntroduceDomain(dominfo.getDomid(),
- dominfo.store_mfn,
- dominfo.store_channel.port1,
- dominfo.getDomainPath())
+ store_mfn = int(m.group(2))
+ dominfo.setStoreRef(store_mfn)
+ IntroduceDomain(dominfo.getDomid(),
+ store_mfn,
+ dominfo.store_channel.port1,
+ dominfo.getDomainPath())
m = re.match(r"^(console-mfn) (\d+)\n$", l)
if m:
dominfo.setConsoleRef(int(m.group(2)))