fpcmoc: silence scan-build dead store

This commit is contained in:
Nikolay Metchev 2026-05-06 09:14:05 +00:00
parent 3e102e5ca0
commit 60ef19c8fd
3 changed files with 3 additions and 6 deletions

View file

@ -293,6 +293,7 @@ usb:v06CBp01A0*
# Supported by libfprint driver upeksonly
usb:v147Ep2016*
usb:v147Ep1000*
usb:v147Ep1002*
usb:v147Ep1001*
ID_AUTOSUSPEND=1
ID_PERSIST=0
@ -443,7 +444,6 @@ usb:v138Ap0097*
usb:v138Ap009D*
usb:v138Ap00AB*
usb:v138Ap00A6*
usb:v147Ep1002*
usb:v1491p0088*
usb:v16D1p1027*
usb:v1C7Ap0300*

View file

@ -277,11 +277,9 @@ fpc_cmd_ssm_done (FpiSsm *ssm, FpDevice *dev, GError *error)
/* Notify about the SSM failure from here instead. */
if (error)
{
CommandData *data = fpi_ssm_get_data (ssm);
fp_err ("%s error: %s ", G_STRFUNC, error->message);
if (data->callback)
data->callback (self, NULL, error);
if (((CommandData *) fpi_ssm_get_data (ssm))->callback)
((CommandData *) fpi_ssm_get_data (ssm))->callback (self, NULL, error);
}
}

View file

@ -117,7 +117,6 @@ static const FpIdEntry allowlist_id_table[] = {
{ .vid = 0x138a, .pid = 0x009d },
{ .vid = 0x138a, .pid = 0x00ab },
{ .vid = 0x138a, .pid = 0x00a6 },
{ .vid = 0x147e, .pid = 0x1002 },
{ .vid = 0x1491, .pid = 0x0088 },
{ .vid = 0x16d1, .pid = 0x1027 },
{ .vid = 0x1c7a, .pid = 0x0300 },