projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1dddd1
)
xenbus: avoid uninitialized variable warning
author
Jan Beulich
<JBeulich@suse.com>
Thu, 28 May 2015 08:26:37 +0000
(09:26 +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/xen/xenbus/xenbus_probe.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/xen/xenbus/xenbus_probe.c
b/drivers/xen/xenbus/xenbus_probe.c
index 5390a674b5e3a8d8ea62112343be83a34be58547..4308fb3cf7c2f717ffd446035f1c30b61f8dacf8 100644
(file)
--- 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,
int err = 0;
if (xen_hvm_domain()) {
- uint64_t v;
+ uint64_t v
= 0
;
err = hvm_get_parameter(HVM_PARAM_STORE_EVTCHN, &v);
if (!err && v)