Revision cc84d90f block/raw_bsd.c

b/block/raw_bsd.c
133 133
static int raw_create(const char *filename, QEMUOptionParameter *options,
134 134
                      Error **errp)
135 135
{
136
    return bdrv_create_file(filename, options);
136
    Error *local_err = NULL;
137
    int ret;
138

  
139
    ret = bdrv_create_file(filename, options, &local_err);
140
    if (error_is_set(&local_err)) {
141
        qerror_report_err(local_err);
142
        error_free(local_err);
143
    }
144
    return ret;
137 145
}
138 146

  
139 147
static int raw_open(BlockDriverState *bs, QDict *options, int flags,

Also available in: Unified diff