diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-11-26 20:08:17 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-11-26 20:08:17 +0000 |
commit | d309ed4dc3e967f5b99cca93f53c120ab8f0b02b (patch) | |
tree | 06ec1f82f99b020ebe87f9798d8dfa2e0831a2d5 /usr.sbin/ldomctl/mdesc.c | |
parent | 1e92c352c2e3b1cf711b8bff9678046dc6d952ef (diff) |
Regeerate Hypervisor MD from scratch instead of modifying the existing one.
Diffstat (limited to 'usr.sbin/ldomctl/mdesc.c')
-rw-r--r-- | usr.sbin/ldomctl/mdesc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/ldomctl/mdesc.c b/usr.sbin/ldomctl/mdesc.c index 8508558380c..c214f6719c0 100644 --- a/usr.sbin/ldomctl/mdesc.c +++ b/usr.sbin/ldomctl/mdesc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdesc.c,v 1.6 2012/11/25 16:15:45 kettenis Exp $ */ +/* $OpenBSD: mdesc.c,v 1.7 2012/11/26 20:08:15 kettenis Exp $ */ /* * Copyright (c) 2012 Mark Kettenis @@ -236,10 +236,8 @@ md_get_prop_val(struct md *md, struct md_node *node, const char *name, struct md_prop *prop; prop = md_find_prop(md, node, name); - if (prop == NULL || prop->tag != MD_PROP_VAL) { - *val = -1; + if (prop == NULL || prop->tag != MD_PROP_VAL) return false; - } *val = prop->d.val; return true; |