broadband-modem-mbim: minor coding style changes
This commit is contained in:
@@ -185,13 +185,8 @@ peek_device (gpointer self,
|
|||||||
|
|
||||||
port = mm_broadband_modem_mbim_peek_port_mbim (MM_BROADBAND_MODEM_MBIM (self));
|
port = mm_broadband_modem_mbim_peek_port_mbim (MM_BROADBAND_MODEM_MBIM (self));
|
||||||
if (!port) {
|
if (!port) {
|
||||||
g_task_report_new_error (self,
|
g_task_report_new_error (self, callback, user_data, peek_device,
|
||||||
callback,
|
MM_CORE_ERROR, MM_CORE_ERROR_FAILED, "Couldn't peek MBIM port");
|
||||||
user_data,
|
|
||||||
peek_device,
|
|
||||||
MM_CORE_ERROR,
|
|
||||||
MM_CORE_ERROR_FAILED,
|
|
||||||
"Couldn't peek MBIM port");
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -8604,7 +8599,7 @@ load_sim_slots_mbim (GTask *task)
|
|||||||
{
|
{
|
||||||
MMBroadbandModemMbim *self;
|
MMBroadbandModemMbim *self;
|
||||||
MbimDevice *device;
|
MbimDevice *device;
|
||||||
MbimMessage *message;
|
g_autoptr(MbimMessage) message = NULL;
|
||||||
|
|
||||||
self = g_task_get_source_object (task);
|
self = g_task_get_source_object (task);
|
||||||
|
|
||||||
@@ -8618,7 +8613,6 @@ load_sim_slots_mbim (GTask *task)
|
|||||||
NULL,
|
NULL,
|
||||||
(GAsyncReadyCallback)query_sys_caps_ready,
|
(GAsyncReadyCallback)query_sys_caps_ready,
|
||||||
task);
|
task);
|
||||||
mbim_message_unref (message);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined WITH_QMI && QMI_MBIM_QMUX_SUPPORTED
|
#if defined WITH_QMI && QMI_MBIM_QMUX_SUPPORTED
|
||||||
@@ -8725,7 +8719,6 @@ set_device_slot_mappings_ready (MbimDevice *device,
|
|||||||
g_task_return_new_error (task, MM_CORE_ERROR, MM_CORE_ERROR_NOT_FOUND,
|
g_task_return_new_error (task, MM_CORE_ERROR, MM_CORE_ERROR_NOT_FOUND,
|
||||||
"Can't find executor index '%u'", self->priv->executor_index);
|
"Can't find executor index '%u'", self->priv->executor_index);
|
||||||
g_object_unref (task);
|
g_object_unref (task);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -8795,7 +8788,7 @@ set_primary_sim_slot_mbim (GTask *task)
|
|||||||
{
|
{
|
||||||
MMBroadbandModemMbim *self;
|
MMBroadbandModemMbim *self;
|
||||||
MbimDevice *device;
|
MbimDevice *device;
|
||||||
MbimMessage *message;
|
g_autoptr(MbimMessage) message = NULL;
|
||||||
|
|
||||||
self = g_task_get_source_object (task);
|
self = g_task_get_source_object (task);
|
||||||
|
|
||||||
@@ -8809,7 +8802,6 @@ set_primary_sim_slot_mbim (GTask *task)
|
|||||||
NULL,
|
NULL,
|
||||||
(GAsyncReadyCallback)before_set_query_device_slot_mappings_ready,
|
(GAsyncReadyCallback)before_set_query_device_slot_mappings_ready,
|
||||||
task);
|
task);
|
||||||
mbim_message_unref (message);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined WITH_QMI && QMI_MBIM_QMUX_SUPPORTED
|
#if defined WITH_QMI && QMI_MBIM_QMUX_SUPPORTED
|
||||||
|
Reference in New Issue
Block a user