mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-06-16 02:15:47 +00:00
kvm tools: Remove unnecessary assignment in disk/raw.c
ro_ops is never used after the assignment, so no need to do the assignment. Signed-off-by: Asias He <asias.hejun@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user