]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - qemu-io.c
Remove NULL checks for bdrv_new return value
[thirdparty/qemu.git] / qemu-io.c
index ff353ebba358885764db7d77dfa7fc43fbf223a2..0f6d1b6b23dd1bc903dfc0e1fb6a9ce499877de0 100644 (file)
--- 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);