diff options
Diffstat (limited to 'block/raw_bsd.c')
-rw-r--r-- | block/raw_bsd.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/block/raw_bsd.c b/block/raw_bsd.c index b1d5237135..7f637914b7 100644 --- a/block/raw_bsd.c +++ b/block/raw_bsd.c @@ -190,14 +190,7 @@ static int raw_has_zero_init(BlockDriverState *bs) static int raw_create(const char *filename, QemuOpts *opts, Error **errp) { - Error *local_err = NULL; - int ret; - - ret = bdrv_create_file(filename, opts, &local_err); - if (local_err) { - error_propagate(errp, local_err); - } - return ret; + return bdrv_create_file(filename, opts, errp); } static int raw_open(BlockDriverState *bs, QDict *options, int flags, |