diff options
author | Radim Krčmář <rkrcmar@redhat.com> | 2017-05-18 20:37:32 +0300 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2017-05-19 20:59:28 +0300 |
commit | 92ceb7679ab8807d3b7fbcc6daf2279036954ef5 (patch) | |
tree | d10ea8fb176db01eb15a7d41778f68d350358c5c /drivers | |
parent | 34b0dadbdf698f9b277a31b2747b625b9a75ea1f (diff) | |
download | linux-92ceb7679ab8807d3b7fbcc6daf2279036954ef5.tar.xz |
KVM: x86: prevent uninitialized variable warning in check_svme()
get_msr() of MSR_EFER is currently always going to succeed, but static
checker doesn't see that far.
Don't complicate stuff and just use 0 for the fallback -- it means that
the feature is not present.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions