trivial: Remove some unused variables

This commit is contained in:
Richard Hughes 2021-08-28 09:58:32 +01:00
parent ab307a879f
commit d8af914072
5 changed files with 0 additions and 6 deletions

View File

@ -480,8 +480,6 @@ fu_cabinet_set_lowercase_checksum_cb(XbBuilderFixup *builder_fixup,
gpointer user_data,
GError **error)
{
g_autoptr(XbBuilderNode) csum = NULL;
if (g_strcmp0(xb_builder_node_get_element(bn), "artifact") == 0)
/* don't care whether it's sha256, sha1 or something else so don't check for
* specific value */

View File

@ -289,7 +289,6 @@ fu_ifd_firmware_write(FuFirmware *firmware, GError **error)
FuIfdFirmwarePrivate *priv = GET_PRIVATE(self);
gsize bufsz_max = 0x0;
g_autoptr(GByteArray) buf = g_byte_array_new();
g_autoptr(GPtrArray) images = fu_firmware_get_images(firmware);
g_autoptr(GHashTable) blobs = NULL;
g_autoptr(FuFirmware) img_desc = NULL;

View File

@ -167,7 +167,6 @@ fu_plugin_dell_dock_separate_activation(FuPlugin *plugin)
GPtrArray *devices = fu_plugin_get_devices(plugin);
FuDevice *device_ec = NULL;
FuDevice *device_usb4 = NULL;
g_autoptr(GError) error_local = NULL;
for (guint i = 0; i < devices->len; i++) {
FuDevice *device_tmp = g_ptr_array_index(devices, i);

View File

@ -101,7 +101,6 @@ fu_redfish_request_load_json(FuRedfishRequest *self, GByteArray *buf, GError **e
/* dump for humans */
if (g_getenv("FWUPD_REDFISH_VERBOSE") != NULL) {
g_autoptr(GString) str = g_string_new(NULL);
g_autoptr(JsonBuilder) builder = json_builder_new();
g_autoptr(JsonGenerator) json_generator = json_generator_new();
json_generator_set_pretty(json_generator, TRUE);
json_generator_set_root(json_generator, json_root);

View File

@ -90,7 +90,6 @@ fu_uefi_cod_device_get_variable_idx(const gchar *name, guint *value, GError **er
gsize bufsz = 0;
g_autofree guint8 *buf = NULL;
g_autofree gchar *str = NULL;
g_autoptr(GError) error_local = NULL;
gunichar2 buf16[VARIABLE_IDX_SIZE] = {0x0};
if (!fu_efivar_get_data(FU_EFIVAR_GUID_EFI_CAPSULE_REPORT, name, &buf, &bufsz, NULL, error))