[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH RFC 3/3] block/nfs: switch to error_init_local
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-block] [PATCH RFC 3/3] block/nfs: switch to error_init_local |
Date: |
Tue, 16 Jun 2015 14:53:55 +0200 |
We probably should just switch everyone, this is
just to demonstrate the API usage.
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
block/nfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/nfs.c b/block/nfs.c
index ca9e24e..de4b8c3 100644
--- a/block/nfs.c
+++ b/block/nfs.c
@@ -385,7 +385,7 @@ static int nfs_file_open(BlockDriverState *bs, QDict
*options, int flags,
NFSClient *client = bs->opaque;
int64_t ret;
QemuOpts *opts;
- Error *local_err = NULL;
+ Error *local_err = error_init_local(errp);
client->aio_context = bdrv_get_aio_context(bs);
--
MST
- [Qemu-block] [PATCH RFC 3/3] block/nfs: switch to error_init_local,
Michael S. Tsirkin <=