Commit 7f303adc authored by Dong Xu Wang's avatar Dong Xu Wang Committed by Michael Tokarev
Browse files

clean unnecessary code: don't check g_strdup arg for NULL

parent 2d40178a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2162,7 +2162,7 @@ query_params_append (struct QueryParams *ps,
    }

    ps->p[ps->n].name = g_strdup(name);
    ps->p[ps->n].value = value ? g_strdup(value) : NULL;
    ps->p[ps->n].value = g_strdup(value);
    ps->p[ps->n].ignore = 0;
    ps->n++;

+1 −1
Original line number Diff line number Diff line
@@ -1215,7 +1215,7 @@ void add_boot_device_path(int32_t bootindex, DeviceState *dev,

    node = g_malloc0(sizeof(FWBootEntry));
    node->bootindex = bootindex;
    node->suffix = suffix ? g_strdup(suffix) : NULL;
    node->suffix = g_strdup(suffix);
    node->dev = dev;

    QTAILQ_FOREACH(i, &fw_boot_order, link) {