aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-02-12 10:19:12 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-02-12 10:19:12 +0000
commit5c22e77bb7a925056a111a73ce7ea3c3c5491ca9 (patch)
tree12f111d9eef04633f8d8d500169ee63edda6ece3 /tools
parent2bba474f8f2ce5e16919f1c98219237fbbbb3520 (diff)
downloadxen-5c22e77bb7a925056a111a73ce7ea3c3c5491ca9.tar.gz
xen-5c22e77bb7a925056a111a73ce7ea3c3c5491ca9.tar.bz2
xen-5c22e77bb7a925056a111a73ce7ea3c3c5491ca9.zip
xend: Remove redundant check of maximum memory size.
Currently, a wrong value of maximum memory size is checked by _safe_set_memory() and _memory_sanity_check(). Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/xend/XendDomainInfo.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py
index 7c8e0975a4..c1cb6aa998 100644
--- a/tools/python/xen/xend/XendDomainInfo.py
+++ b/tools/python/xen/xend/XendDomainInfo.py
@@ -707,9 +707,6 @@ class XendDomainInfo:
log.debug("Setting memory maximum of domain %s (%s) to %d MiB.",
self.info['name_label'], str(self.domid), limit)
- if limit <= 0:
- raise XendError('Invalid memory size')
-
MiB = 1024 * 1024
self._safe_set_memory('memory_static_max', limit * MiB)