From: Max Reitz Date: Thu, 10 Oct 2013 13:44:00 +0000 (+0200) Subject: block/raw_bsd: Employ error parameter X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~524^2~3^2~111^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92f1deec317230575726a8e0ab5c110781d30ec0;p=sdk%2Femulator%2Fqemu.git block/raw_bsd: Employ error parameter Propagate errors in raw_create rather than directly reporting and afterwards discarding them. Signed-off-by: Max Reitz Signed-off-by: Kevin Wolf --- 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; }