mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
fpi-device: Simplify logic of fpi_device_task_return_data_free
The clear functions will do NULL checks already, so there's no need to duplicate such effort
This commit is contained in:
committed by
Marco Trevisan
parent
b7f3544e98
commit
37ded921fd
@@ -1041,8 +1041,6 @@ fp_device_task_return_in_idle_cb (gpointer user_data)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
fpi_device_task_return_data_free (FpDeviceTaskReturnData *data)
|
fpi_device_task_return_data_free (FpDeviceTaskReturnData *data)
|
||||||
{
|
|
||||||
if (data->result)
|
|
||||||
{
|
{
|
||||||
switch (data->type)
|
switch (data->type)
|
||||||
{
|
{
|
||||||
@@ -1065,7 +1063,7 @@ fpi_device_task_return_data_free (FpDeviceTaskReturnData *data)
|
|||||||
default:
|
default:
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
g_object_unref (data->device);
|
g_object_unref (data->device);
|
||||||
g_free (data);
|
g_free (data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user