Skip to content

Commit

Permalink
xenbus: avoid uninitialized variable warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Beulich authored and David Vrabel committed May 28, 2015
1 parent f1dddd1 commit 76ea3cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/xen/xenbus/xenbus_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 76ea3cb

Please sign in to comment.