diff options
author | Max Reitz <mreitz@redhat.com> | 2013-10-10 15:44:00 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-10-11 16:50:00 +0200 |
commit | 92f1deec317230575726a8e0ab5c110781d30ec0 (patch) | |
tree | d0f8995bd3faf1dc46f680610a4d4501bed8efd9 /block/raw_bsd.c | |
parent | 1fa5cc839aa6068c9182ad8d611f844c58f95f42 (diff) |
block/raw_bsd: Employ error parameter
Propagate errors in raw_create rather than directly reporting and
afterwards discarding them.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/raw_bsd.c')
-rw-r--r-- | block/raw_bsd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/raw_bsd.c b/block/raw_bsd.c index d61906bcc2..0078c1baeb 100644 --- a/block/raw_bsd.c +++ b/block/raw_bsd.c @@ -140,8 +140,7 @@ static int raw_create(const char *filename, QEMUOptionParameter *options, ret = bdrv_create_file(filename, options, &local_err); if (error_is_set(&local_err)) { - qerror_report_err(local_err); - error_free(local_err); + error_propagate(errp, local_err); } return ret; } |