diff --git a/plugins/modem-manager/fu-mbim-qdu-updater.c b/plugins/modem-manager/fu-mbim-qdu-updater.c index 32038e602..d4044baf9 100644 --- a/plugins/modem-manager/fu-mbim-qdu-updater.c +++ b/plugins/modem-manager/fu-mbim-qdu-updater.c @@ -321,7 +321,6 @@ fu_mbim_qdu_updater_file_open_ready(MbimDevice *device, GAsyncResult *res, gpoin { WriteContext *ctx = user_data; guint32 out_max_transfer_size; - guint32 total_sending_numbers = 0; FuChunk *chk = NULL; g_autoptr(MbimMessage) request = NULL; g_autoptr(MbimMessage) response = NULL; @@ -344,10 +343,6 @@ fu_mbim_qdu_updater_file_open_ready(MbimDevice *device, GAsyncResult *res, gpoin return; } - total_sending_numbers = g_bytes_get_size(ctx->blob) / out_max_transfer_size; - if (g_bytes_get_size(ctx->blob) % out_max_transfer_size != 0) - total_sending_numbers++; - ctx->chunks = fu_chunk_array_new_from_bytes(ctx->blob, 0x00, /* start addr */ 0x00, /* page_sz */