ep963x: Remove some dead code spotted by Coverity

This commit is contained in:
Richard Hughes 2020-04-21 16:45:31 +01:00
parent b74db0618c
commit 7b0023de7f

View File

@ -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,