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

hvc_xen: 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
c4ace5da 76ea3cb4

+1 -1
+1 -1
drivers/tty/hvc/hvc_xen.c
··· 302 302 static void xen_console_update_evtchn(struct xencons_info *info) 303 303 { 304 304 if (xen_hvm_domain()) { 305 - uint64_t v; 305 + uint64_t v = 0; 306 306 int err; 307 307 308 308 err = hvm_get_parameter(HVM_PARAM_CONSOLE_EVTCHN, &v);