From c0fb40b7e876a2f6667ba136cba67c45bb45924f Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 24 Nov 2020 10:52:25 +0100 Subject: [PATCH] modem-manager: remove unused byte counts in QMI/PDC update logic --- plugins/modem-manager/fu-mm-device.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/modem-manager/fu-mm-device.c b/plugins/modem-manager/fu-mm-device.c index c9298e308..bd377e543 100644 --- a/plugins/modem-manager/fu-mm-device.c +++ b/plugins/modem-manager/fu-mm-device.c @@ -485,8 +485,6 @@ typedef struct { FuMmDevice *device; GError *error; GPtrArray *file_infos; - gsize total_written; - gsize total_bytes; } FuMmArchiveIterateCtx; static gboolean @@ -536,7 +534,6 @@ fu_mm_qmi_pdc_archive_iterate_mcfg (FuArchive *archive, file_info->bytes = g_bytes_ref (bytes); file_info->active = fu_mm_should_be_active (fu_device_get_version (FU_DEVICE (ctx->device)), filename); g_ptr_array_add (ctx->file_infos, file_info); - ctx->total_bytes += g_bytes_get_size (file_info->bytes); return TRUE; } @@ -577,8 +574,6 @@ fu_mm_device_write_firmware_qmi_pdc (FuDevice *device, GBytes *fw, GArray **acti .device = FU_MM_DEVICE (device), .error = NULL, .file_infos = file_infos, - .total_written = 0, - .total_bytes = 0, }; /* decompress entire archive ahead of time */