diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-12-16 15:37:41 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-12-17 16:11:03 +0100 |
commit | ad7171394f2fe3f9b5fe02f0c62496291a859a92 (patch) | |
tree | fe0487891f82d023bb3cdc12dba037a48ad2424d /qemu-nbd.c | |
parent | 15654a6d7c3269e922b92f9596e48078c9bfcbfa (diff) | |
download | hqemu-ad7171394f2fe3f9b5fe02f0c62496291a859a92.zip hqemu-ad7171394f2fe3f9b5fe02f0c62496291a859a92.tar.gz |
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-nbd.c')
-rw-r--r-- | qemu-nbd.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -336,8 +336,6 @@ int main(int argc, char **argv) bdrv_init(); bs = bdrv_new("hda"); - if (bs == NULL) - return 1; if ((ret = bdrv_open(bs, argv[optind], flags, NULL)) < 0) { errno = -ret; |