From 60ef19c8fdf48c26addaed6760d4fee15745329d Mon Sep 17 00:00:00 2001 From: Nikolay Metchev Date: Wed, 6 May 2026 09:14:05 +0000 Subject: [PATCH] fpcmoc: silence scan-build dead store --- data/autosuspend.hwdb | 2 +- libfprint/drivers/fpcmoc/fpc.c | 6 ++---- libfprint/fprint-list-udev-hwdb.c | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/data/autosuspend.hwdb b/data/autosuspend.hwdb index fe682714..6ab0a23b 100644 --- a/data/autosuspend.hwdb +++ b/data/autosuspend.hwdb @@ -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* diff --git a/libfprint/drivers/fpcmoc/fpc.c b/libfprint/drivers/fpcmoc/fpc.c index 1b6af881..4412ecb5 100644 --- a/libfprint/drivers/fpcmoc/fpc.c +++ b/libfprint/drivers/fpcmoc/fpc.c @@ -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); } } diff --git a/libfprint/fprint-list-udev-hwdb.c b/libfprint/fprint-list-udev-hwdb.c index 6e2adb04..21b41943 100644 --- a/libfprint/fprint-list-udev-hwdb.c +++ b/libfprint/fprint-list-udev-hwdb.c @@ -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 },