broadband-modem: remove unused variables
This commit is contained in:

committed by
Aleksander Morgado

parent
8e645485e3
commit
06bbe67000
@@ -1775,7 +1775,6 @@ signal_quality_csq_ready (MMBroadbandModem *self,
|
|||||||
GAsyncResult *res,
|
GAsyncResult *res,
|
||||||
GTask *task)
|
GTask *task)
|
||||||
{
|
{
|
||||||
SignalQualityContext *ctx;
|
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
GVariant *result;
|
GVariant *result;
|
||||||
const gchar *result_str;
|
const gchar *result_str;
|
||||||
@@ -1787,8 +1786,6 @@ signal_quality_csq_ready (MMBroadbandModem *self,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx = g_task_get_task_data (task);
|
|
||||||
|
|
||||||
result_str = g_variant_get_string (result, NULL);
|
result_str = g_variant_get_string (result, NULL);
|
||||||
if (result_str) {
|
if (result_str) {
|
||||||
/* Got valid reply */
|
/* Got valid reply */
|
||||||
@@ -1956,7 +1953,6 @@ signal_quality_qcdm_ready (MMPortSerialQcdm *port,
|
|||||||
GAsyncResult *res,
|
GAsyncResult *res,
|
||||||
GTask *task)
|
GTask *task)
|
||||||
{
|
{
|
||||||
SignalQualityContext *ctx;
|
|
||||||
QcdmResult *result;
|
QcdmResult *result;
|
||||||
guint32 num = 0, quality = 0, i;
|
guint32 num = 0, quality = 0, i;
|
||||||
gfloat best_db = -28;
|
gfloat best_db = -28;
|
||||||
@@ -1971,8 +1967,6 @@ signal_quality_qcdm_ready (MMPortSerialQcdm *port,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx = g_task_get_task_data (task);
|
|
||||||
|
|
||||||
/* Parse the response */
|
/* Parse the response */
|
||||||
result = qcdm_cmd_pilot_sets_result ((const gchar *) response->data,
|
result = qcdm_cmd_pilot_sets_result ((const gchar *) response->data,
|
||||||
response->len,
|
response->len,
|
||||||
@@ -6439,7 +6433,6 @@ list_parts_lock_storages_ready (MMBroadbandModem *self,
|
|||||||
GAsyncResult *res,
|
GAsyncResult *res,
|
||||||
GTask *task)
|
GTask *task)
|
||||||
{
|
{
|
||||||
ListPartsContext *ctx;
|
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
if (!mm_broadband_modem_lock_sms_storages_finish (self, res, &error)) {
|
if (!mm_broadband_modem_lock_sms_storages_finish (self, res, &error)) {
|
||||||
@@ -6450,8 +6443,6 @@ list_parts_lock_storages_ready (MMBroadbandModem *self,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx = g_task_get_task_data (task);
|
|
||||||
|
|
||||||
/* Storage now set and locked */
|
/* Storage now set and locked */
|
||||||
|
|
||||||
/* Get SMS parts from ALL types.
|
/* Get SMS parts from ALL types.
|
||||||
@@ -8743,7 +8734,6 @@ enabling_modem_init_ready (MMBroadbandModem *self,
|
|||||||
GAsyncResult *res,
|
GAsyncResult *res,
|
||||||
GTask *task)
|
GTask *task)
|
||||||
{
|
{
|
||||||
EnablingStartedContext *ctx;
|
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
if (!MM_BROADBAND_MODEM_GET_CLASS (self)->enabling_modem_init_finish (self, res, &error)) {
|
if (!MM_BROADBAND_MODEM_GET_CLASS (self)->enabling_modem_init_finish (self, res, &error)) {
|
||||||
@@ -8752,8 +8742,6 @@ enabling_modem_init_ready (MMBroadbandModem *self,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx = g_task_get_task_data (task);
|
|
||||||
|
|
||||||
/* Specify that the modem init was run once */
|
/* Specify that the modem init was run once */
|
||||||
self->priv->modem_init_run = TRUE;
|
self->priv->modem_init_run = TRUE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user