projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76ea3cb
)
hvc_xen: avoid uninitialized variable warning
author
Jan Beulich
<JBeulich@suse.com>
Thu, 28 May 2015 08:28:22 +0000
(09:28 +0100)
committer
David Vrabel
<david.vrabel@citrix.com>
Thu, 28 May 2015 11:23:12 +0000
(12:23 +0100)
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>
drivers/tty/hvc/hvc_xen.c
patch
|
blob
|
history
diff --git
a/drivers/tty/hvc/hvc_xen.c
b/drivers/tty/hvc/hvc_xen.c
index
7a3d146
..
a9d837f
100644
(file)
--- 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);