validity: remove unused variable assignments in database and pairing command functions

This commit is contained in:
Leonardo Francisco 2026-04-08 13:00:11 -04:00 committed by Leonardo
parent 3eb4676f53
commit 480200cdbd
3 changed files with 2 additions and 3 deletions

View file

@ -271,13 +271,14 @@ static void
fpc_cmd_ssm_done (FpiSsm *ssm, FpDevice *dev, GError *error)
{
FpiDeviceFpcMoc *self = FPI_DEVICE_FPCMOC (dev);
CommandData *data = fpi_ssm_get_data (ssm);
CommandData *data = NULL;
self->cmd_ssm = NULL;
/* Notify about the SSM failure from here instead. */
if (error)
{
fp_err ("%s error: %s ", G_STRFUNC, error->message);
data = fpi_ssm_get_data (ssm);
if (data->callback)
data->callback (self, NULL, error);
}

View file

@ -765,7 +765,6 @@ validity_db_build_finger_data (guint16 subtype,
pos += 2;
if (tid_len > 0)
memcpy (&buf[pos], tid, tid_len);
pos += tid_len;
/* Remaining 0x20 bytes are zero-filled from g_new0 */

View file

@ -509,7 +509,6 @@ validity_pair_build_partition_flash_cmd (const ValidityFlashIcParams *flash_ic,
memcpy (cmd + offset, hdr5, hdr5_len);
offset += hdr5_len;
memcpy (cmd + offset, hdr3, hdr3_len);
offset += hdr3_len;
*out_len = total;
return cmd;