Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jan Beulich and committed by
David Vrabel
76ea3cb4 f1dddd11

+1 -1
+1 -1
drivers/xen/xenbus/xenbus_probe.c
··· 742 742 int err = 0; 743 743 744 744 if (xen_hvm_domain()) { 745 - uint64_t v; 745 + uint64_t v = 0; 746 746 747 747 err = hvm_get_parameter(HVM_PARAM_STORE_EVTCHN, &v); 748 748 if (!err && v)