mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 11:07:37 +00:00
trivial: remove some unused variables caught by clang
This commit is contained in:
parent
6288886d35
commit
8867b1f47e
@ -44,7 +44,6 @@ fu_acpi_phat_version_element_parse (FuFirmware *firmware,
|
||||
gchar producer_id[4] = { '\0' };
|
||||
gsize bufsz = 0;
|
||||
guint64 version_value = 0;
|
||||
g_autofree gchar *guid_str = NULL;
|
||||
const guint8 *buf = g_bytes_get_data (fw, &bufsz);
|
||||
|
||||
/* hardcoded */
|
||||
|
@ -306,7 +306,6 @@ fu_pxi_receiver_device_write_payload (FuDevice *device, FuChunk *chk, GError **e
|
||||
guint8 status = 0x0;
|
||||
g_autoptr(GByteArray) ota_cmd = g_byte_array_new ();
|
||||
g_autoptr(GByteArray) receiver_device_cmd = g_byte_array_new ();
|
||||
g_autoptr(GTimer) timer = g_timer_new ();
|
||||
|
||||
/* ota write payload command */
|
||||
fu_byte_array_append_uint8 (ota_cmd, fu_chunk_get_data_sz (chk)); /* ota command length */
|
||||
|
@ -282,7 +282,6 @@ fu_pxi_wireless_device_write_payload (FuDevice *device, FuChunk *chk, GError **e
|
||||
guint8 status = 0x0;
|
||||
g_autoptr(GByteArray) ota_cmd = g_byte_array_new ();
|
||||
g_autoptr(GByteArray) receiver_cmd = g_byte_array_new ();
|
||||
g_autoptr(GTimer) timer = g_timer_new ();
|
||||
|
||||
/* proxy */
|
||||
parent = fu_pxi_wireless_device_get_parent (device, error);
|
||||
@ -574,7 +573,6 @@ fu_pxi_wireless_device_write_firmware (FuDevice *device,
|
||||
FuPxiWirelessDevice *self = FU_PXI_WIRELESS_DEVICE (device);
|
||||
g_autoptr(GBytes) fw = NULL;
|
||||
g_autoptr(GPtrArray) chunks = NULL;
|
||||
g_autoptr(GError) error_local = NULL;
|
||||
|
||||
/* get the default image */
|
||||
fw = fu_firmware_get_bytes (firmware, error);
|
||||
|
Loading…
Reference in New Issue
Block a user