ro_ops is never used after the assignment, so no need to do the assignment. Signed-off-by: Asias He <asias.hejun@xxxxxxxxx> --- tools/kvm/disk/raw.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/tools/kvm/disk/raw.c b/tools/kvm/disk/raw.c index 9e5e86f..bdcd047 100644 --- a/tools/kvm/disk/raw.c +++ b/tools/kvm/disk/raw.c @@ -118,7 +118,6 @@ struct disk_image *raw_image__probe(int fd, struct stat *st, bool readonly) disk = disk_image__new(fd, st->st_size, &ro_ops, DISK_IMAGE_MMAP); if (disk == NULL) { - ro_ops = raw_image_regular_ops; disk = disk_image__new(fd, st->st_size, &ro_ops_nowrite, DISK_IMAGE_REGULAR); #ifdef CONFIG_HAS_AIO -- 1.7.7.3 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html