Skip to content

Commit 1ac98ca

Browse files
ymdattalgirdwood
authored andcommitted
qemu: io-bridge: remove fd assignment after its closed
The free descriptor is closed using close system call and in the next step it is assigned again to 0. Remove this assignment. Signed-off-by: Mohana Datta Yelugoti <ymdatta.work@gmail.com>
1 parent ece0302 commit 1ac98ca

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

util/qemu-io-bridge.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,5 @@ void qemu_io_free_shm(int region)
391391
/* client or host can unlink this, so it gets done twice */
392392
shm_unlink(_iob.shm[region].name);
393393
close(_iob.shm[region].fd);
394-
_iob.shm[region].fd = 0;
395394
}
396395
}

0 commit comments

Comments
 (0)