validity: address pipeline warning: Value stored to 'data' during its initialization is never read [deadcode.DeadStores]

This commit is contained in:
Leonardo Francisco 2026-04-12 23:52:37 -04:00 committed by lewohart
parent 162d66d7a4
commit 8441c98fc2

View file

@ -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);
}