projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b871da4
)
KVM: SVM: remove unused variable dst_vaddr_end
author
Colin Ian King
<colin.king@canonical.com>
Tue, 28 Aug 2018 15:22:28 +0000
(16:22 +0100)
committer
Radim Krčmář
<rkrcmar@redhat.com>
Thu, 30 Aug 2018 14:20:42 +0000
(16:20 +0200)
Variable dst_vaddr_end is being assigned but is never used hence it is
redundant and can be removed.
Cleans up clang warning:
variable 'dst_vaddr_end' set but not used [-Wunused-but-set-variable]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/svm.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/svm.c
b/arch/x86/kvm/svm.c
index 6276140044d0848b58e6778c31cf4d247520ac44..4339fc4715fa9e7f22e4df70cc48456fc74de44f 100644
(file)
--- a/
arch/x86/kvm/svm.c
+++ b/
arch/x86/kvm/svm.c
@@
-6747,7
+6747,7
@@
e_free:
static int sev_dbg_crypt(struct kvm *kvm, struct kvm_sev_cmd *argp, bool dec)
{
unsigned long vaddr, vaddr_end, next_vaddr;
- unsigned long dst_vaddr
, dst_vaddr_end
;
+ unsigned long dst_vaddr;
struct page **src_p, **dst_p;
struct kvm_sev_dbg debug;
unsigned long n;
@@
-6763,7
+6763,6
@@
static int sev_dbg_crypt(struct kvm *kvm, struct kvm_sev_cmd *argp, bool dec)
size = debug.len;
vaddr_end = vaddr + size;
dst_vaddr = debug.dst_uaddr;
- dst_vaddr_end = dst_vaddr + size;
for (; vaddr < vaddr_end; vaddr = next_vaddr) {
int len, s_off, d_off;