diff options
author | Jan Beulich <JBeulich@suse.com> | 2015-05-28 09:28:22 +0100 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2015-05-28 12:23:12 +0100 |
commit | c4ace5daf4ff726402b13f1ababf2ad0e0ceec65 (patch) | |
tree | 6a516e0b9ca764f65a4bf0ed746703015301d3e4 /drivers/tty/hvc/hvc_xen.c | |
parent | 76ea3cb428c5dc4fd5a415a7651026caf198fb3d (diff) | |
download | talos-op-linux-c4ace5daf4ff726402b13f1ababf2ad0e0ceec65.tar.gz talos-op-linux-c4ace5daf4ff726402b13f1ababf2ad0e0ceec65.zip |
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>
Diffstat (limited to 'drivers/tty/hvc/hvc_xen.c')
-rw-r--r-- | drivers/tty/hvc/hvc_xen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/hvc/hvc_xen.c b/drivers/tty/hvc/hvc_xen.c index 7a3d146a5f0e..a9d837f83ce8 100644 --- a/drivers/tty/hvc/hvc_xen.c +++ b/drivers/tty/hvc/hvc_xen.c @@ -302,7 +302,7 @@ static int xen_initial_domain_console_init(void) static void xen_console_update_evtchn(struct xencons_info *info) { if (xen_hvm_domain()) { - uint64_t v; + uint64_t v = 0; int err; err = hvm_get_parameter(HVM_PARAM_CONSOLE_EVTCHN, &v); |