KVM: stats: Remove unnecessary value store
PATCH 1/1 KVM: stats: Remove unnecessary value store
Variables 'remain' and 'dest' don't need to be updated in the end.
Reported-by kernel test robot <[email protected]>
Signed-off-by Jing Zhang <[email protected]>
--- virt/kvm/binary_stats.c | 2 -- 1 file changed, 2 deletions(-)
virt/kvm/binary_stats.c +0 -2
@@ -136,9 +136,7 @@ ssize_t kvm_stats_read(char *id, const struct kvm_stats_header *header, src = stats + pos - header->data_offset;if (copy_to_user (dest, src, copylen))return -EFAULT ; - remain -= copylen; pos += copylen; - dest += copylen; } *offset = pos;
base-commit: d0732b0f8884d9cc0eca0082bbaef043f3fef7fb
Signature · 1 line
2.32.0.605.g8dce9f2422-goog