diff options
author | Jan Beulich <JBeulich@suse.com> | 2015-05-28 04:26:37 -0400 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2015-05-28 07:23:12 -0400 |
commit | 76ea3cb428c5dc4fd5a415a7651026caf198fb3d (patch) | |
tree | 652d8c636fb9b3bf3c3591e58096afb0bb5aafdf /drivers/xen | |
parent | f1dddd118c555508ce383b7262f4e6440927bdf4 (diff) |
xenbus: avoid uninitialized variable warning
Older compilers don't recognize that "v" can't be used uninitialized;
other code using hvm_get_parameter() zeros the value too, so follow
suit here.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index 5390a674b5e3..4308fb3cf7c2 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c | |||
@@ -742,7 +742,7 @@ static int xenbus_resume_cb(struct notifier_block *nb, | |||
742 | int err = 0; | 742 | int err = 0; |
743 | 743 | ||
744 | if (xen_hvm_domain()) { | 744 | if (xen_hvm_domain()) { |
745 | uint64_t v; | 745 | uint64_t v = 0; |
746 | 746 | ||
747 | err = hvm_get_parameter(HVM_PARAM_STORE_EVTCHN, &v); | 747 | err = hvm_get_parameter(HVM_PARAM_STORE_EVTCHN, &v); |
748 | if (!err && v) | 748 | if (!err && v) |