mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-05-11 09:38:09 +02:00
validity: address pipeline warning: Value stored to 'data' during its initialization is never read [deadcode.DeadStores]
This commit is contained in:
parent
162d66d7a4
commit
8441c98fc2
1 changed files with 2 additions and 1 deletions
|
|
@ -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 = 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue