Loading block/bochs.c +2 −4 Original line number Diff line number Diff line Loading @@ -116,10 +116,8 @@ static int bochs_open(BlockDriverState *bs, const char *filename, int flags) struct bochs_header bochs; struct bochs_header_v1 header_v1; fd = open(filename, O_RDWR | O_BINARY); if (fd < 0) { fd = open(filename, O_RDONLY | O_BINARY); if (fd < 0) if (fd < 0) { return -1; } Loading block/parallels.c +2 −4 Original line number Diff line number Diff line Loading @@ -74,10 +74,8 @@ static int parallels_open(BlockDriverState *bs, const char *filename, int flags) int fd, i; struct parallels_header ph; fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE); if (fd < 0) { fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE); if (fd < 0) if (fd < 0) { return -1; } Loading Loading
block/bochs.c +2 −4 Original line number Diff line number Diff line Loading @@ -116,10 +116,8 @@ static int bochs_open(BlockDriverState *bs, const char *filename, int flags) struct bochs_header bochs; struct bochs_header_v1 header_v1; fd = open(filename, O_RDWR | O_BINARY); if (fd < 0) { fd = open(filename, O_RDONLY | O_BINARY); if (fd < 0) if (fd < 0) { return -1; } Loading
block/parallels.c +2 −4 Original line number Diff line number Diff line Loading @@ -74,10 +74,8 @@ static int parallels_open(BlockDriverState *bs, const char *filename, int flags) int fd, i; struct parallels_header ph; fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE); if (fd < 0) { fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE); if (fd < 0) if (fd < 0) { return -1; } Loading