diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-02-12 10:19:12 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-02-12 10:19:12 +0000 |
commit | 5c22e77bb7a925056a111a73ce7ea3c3c5491ca9 (patch) | |
tree | 12f111d9eef04633f8d8d500169ee63edda6ece3 /tools | |
parent | 2bba474f8f2ce5e16919f1c98219237fbbbb3520 (diff) | |
download | xen-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.py | 3 |
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) |