mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-06-12 02:44:18 +00:00
fpcmoc: Avoid dead-store
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 <dhs@frame.work>
This commit is contained in:
committed by
Marco Trevisan
parent
7111218427
commit
8a2123ce6a
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user