mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-15 19:58:03 +00:00
ep963x: Remove some dead code spotted by Coverity
This commit is contained in:
parent
b74db0618c
commit
7b0023de7f
@ -41,16 +41,6 @@ fu_ep963x_firmware_parse (FuFirmware *firmware,
|
|||||||
return FALSE;
|
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 */
|
/* check signature */
|
||||||
if (memcmp (data + 16, "EP963", 5) != 0) {
|
if (memcmp (data + 16, "EP963", 5) != 0) {
|
||||||
g_set_error_literal (error,
|
g_set_error_literal (error,
|
||||||
|
Loading…
Reference in New Issue
Block a user