KVM: stats: remove dead stores
[linux-2.6-microblaze.git] / virt / kvm / binary_stats.c
index e609d42..eefca6c 100644 (file)
@@ -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;