fpcmoc: fix analyzer cast warning

This commit is contained in:
Nikolay Metchev 2026-05-06 09:07:31 +00:00
parent c5896e0f24
commit 3e102e5ca0

View file

@ -277,9 +277,11 @@ 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 (fpi_ssm_get_data (ssm)->callback)
fpi_ssm_get_data (ssm)->callback (self, NULL, error);
if (data->callback)
data->callback (self, NULL, error);
}
}