summaryrefslogtreecommitdiff
path: root/qemu
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-22 17:54:10 +0200
committerEduardo Habkost <ehabkost@redhat.com>2009-07-28 12:41:14 -0300
commitef9570b1a68b37605518f55033004f6bbd13507f (patch)
tree04d66ae53ac67553e4d2529050874db3e096b5da /qemu
parent96f891c66e4dd0f5d03d9fc80324fc58f94addbe (diff)
Fix hdev_open error:
In changeset 0749b030 We introduced an assignation instead of one comparation. Bad, bad, bad reviewers (I was one of them). Signed-off-by: Juan Quintela <quintela@redhat.com> Message-Id: <8c94268e7c70c9ef56f89fb4eb34bb357e29da91.1248275998.git.quintela@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Bugzilla: 513252 RH-Upstream-status: not-applicable Acked-by: Markus Armbruster <armbru@redhat.com> Acked-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Luiz Capitulino <lcapitulino@redhat.com> Acked-by: Dor Laor <dlaor@redhat.com>
Diffstat (limited to 'qemu')
-rw-r--r--qemu/block-raw-posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu/block-raw-posix.c b/qemu/block-raw-posix.c
index ac2dab9e..9f49f229 100644
--- a/qemu/block-raw-posix.c
+++ b/qemu/block-raw-posix.c
@@ -957,7 +957,7 @@ static int hdev_open(BlockDriverState *bs, const char *filename, int flags)
/* open will not fail even if no floppy is inserted */
open_flags |= O_NONBLOCK;
}
- if (s->type = FTYPE_FILE &&
+ if (s->type == FTYPE_FILE &&
strstart(filename, "/dev/sg", NULL)) {
bs->sg = 1;
}