Commit 25a70175 authored by Markus Armbruster's avatar Markus Armbruster Committed by Luiz Capitulino
Browse files

qapi: Clean up superfluous null check in qapi_dealloc_type_str()



Argument can't be null.  No other Visitor method type_str() checks for
null.

Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Signed-off-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
parent 949ceeb3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -131,10 +131,8 @@ static void qapi_dealloc_end_list(Visitor *v, Error **errp)
static void qapi_dealloc_type_str(Visitor *v, char **obj, const char *name,
                                  Error **errp)
{
    if (obj) {
    g_free(*obj);
}
}

static void qapi_dealloc_type_int(Visitor *v, int64_t *obj, const char *name,
                                  Error **errp)