aboutsummaryrefslogtreecommitdiff
path: root/qemu-io.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2010-12-16 15:37:41 +0100
committerKevin Wolf <kwolf@redhat.com>2010-12-17 16:11:03 +0100
commitad7171394f2fe3f9b5fe02f0c62496291a859a92 (patch)
treefe0487891f82d023bb3cdc12dba037a48ad2424d /qemu-io.c
parent15654a6d7c3269e922b92f9596e48078c9bfcbfa (diff)
Remove NULL checks for bdrv_new return value
It's an indirect call to qemu_malloc, which never returns an error. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-io.c')
-rw-r--r--qemu-io.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/qemu-io.c b/qemu-io.c
index ff353ebba3..0f6d1b6b23 100644
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -1509,8 +1509,6 @@ static int openfile(char *name, int flags, int growable)
}
} else {
bs = bdrv_new("hda");
- if (!bs)
- return 1;
if (bdrv_open(bs, name, flags, NULL) < 0) {
fprintf(stderr, "%s: can't open device %s\n", progname, name);