From 7b0023de7f36c2783a8eea164efb51e32de5acda Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 21 Apr 2020 16:45:31 +0100 Subject: [PATCH] ep963x: Remove some dead code spotted by Coverity --- plugins/ep963x/fu-ep963x-firmware.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/plugins/ep963x/fu-ep963x-firmware.c b/plugins/ep963x/fu-ep963x-firmware.c index 9f6137d9c..2c7a41b27 100644 --- a/plugins/ep963x/fu-ep963x-firmware.c +++ b/plugins/ep963x/fu-ep963x-firmware.c @@ -41,16 +41,6 @@ fu_ep963x_firmware_parse (FuFirmware *firmware, return FALSE; } - /* check padding */ - if (len % FU_EP963_TRANSFER_BLOCK_SIZE != 0) { - g_set_error (error, - FWUPD_ERROR, - FWUPD_ERROR_INVALID_FILE, - "firmware size padding incorrect, expected 0x%x", - (guint) FU_EP963_TRANSFER_BLOCK_SIZE); - return FALSE; - } - /* check signature */ if (memcmp (data + 16, "EP963", 5) != 0) { g_set_error_literal (error,