On Mon, Feb 17, 2014 at 11:11:12AM -0500, Jeff Cody wrote:
> +static int qemu_gluster_reopen_prepare(BDRVReopenState *state,
> +                                       BlockReopenQueue *queue, Error **errp)
> +{
> +    int ret = 0;
> +    BDRVGlusterReopenState *reop_s;
> +    GlusterConf *gconf = NULL;
> +    int open_flags = 0;
> +
> +    assert(state != NULL);
> +    assert(state->bs != NULL);
> +
> +    state->opaque = g_malloc0(sizeof(BDRVGlusterReopenState));

Not worth respinning but if you use the type name, then the more concise
notation is:

state->opaque = g_new0(BDRVGlusterReopenState, 1);

Reply via email to