From 8a2123ce6af3827d198745ac3f3213482e9a8af3 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Wed, 20 May 2026 11:10:47 +0800 Subject: [PATCH] fpcmoc: Avoid dead-store MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the CI test_scan_build libfprint/drivers/fpcmoc/fpc.c:275 — [deadcode.DeadStores] warning: Value stored to 'data' during its initialization is never read CommandData *data = fpi_ssm_get_data (ssm); Signed-off-by: Daniel Schaefer --- libfprint/drivers/fpcmoc/fpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libfprint/drivers/fpcmoc/fpc.c b/libfprint/drivers/fpcmoc/fpc.c index 466a8096..65fa5825 100644 --- a/libfprint/drivers/fpcmoc/fpc.c +++ b/libfprint/drivers/fpcmoc/fpc.c @@ -272,13 +272,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; 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); }