mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
KVM: stats: remove dead stores
These stores are copied and pasted from the "if" statements above. They are dead and while they are not really a bug, they can be confusing to anyone reading the code as well. Remove them. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
1ccb6f983a
commit
ee3b6e41bc
@ -136,9 +136,7 @@ ssize_t kvm_stats_read(char *id, const struct kvm_stats_header *header,
|
|||||||
src = stats + pos - header->data_offset;
|
src = stats + pos - header->data_offset;
|
||||||
if (copy_to_user(dest, src, copylen))
|
if (copy_to_user(dest, src, copylen))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
remain -= copylen;
|
|
||||||
pos += copylen;
|
pos += copylen;
|
||||||
dest += copylen;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
*offset = pos;
|
*offset = pos;
|
||||||
|
Loading…
Reference in New Issue
Block a user