KVM: SVM: remove unused variable dst_vaddr_end
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>
This commit is contained in:
parent
b871da4a77
commit
0186ec8232
|
@ -6747,7 +6747,7 @@ e_free:
|
||||||
static int sev_dbg_crypt(struct kvm *kvm, struct kvm_sev_cmd *argp, bool dec)
|
static int sev_dbg_crypt(struct kvm *kvm, struct kvm_sev_cmd *argp, bool dec)
|
||||||
{
|
{
|
||||||
unsigned long vaddr, vaddr_end, next_vaddr;
|
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 page **src_p, **dst_p;
|
||||||
struct kvm_sev_dbg debug;
|
struct kvm_sev_dbg debug;
|
||||||
unsigned long n;
|
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;
|
size = debug.len;
|
||||||
vaddr_end = vaddr + size;
|
vaddr_end = vaddr + size;
|
||||||
dst_vaddr = debug.dst_uaddr;
|
dst_vaddr = debug.dst_uaddr;
|
||||||
dst_vaddr_end = dst_vaddr + size;
|
|
||||||
|
|
||||||
for (; vaddr < vaddr_end; vaddr = next_vaddr) {
|
for (; vaddr < vaddr_end; vaddr = next_vaddr) {
|
||||||
int len, s_off, d_off;
|
int len, s_off, d_off;
|
||||||
|
|
Loading…
Reference in New Issue