broadband-modem-mbim: fix warnings with -Wshadow

mm-broadband-modem-mbim.c: In function ‘ussd_cancel_ready’:
  mm-broadband-modem-mbim.c:5005:16: error: declaration of ‘task’ shadows a parameter [-Werror=shadow]
   5005 |         GTask *task;
        |                ^~~~
  mm-broadband-modem-mbim.c:4991:34: note: shadowed declaration is here
   4991 |                    GTask        *task)
        |                    ~~~~~~~~~~~~~~^~~~
This commit is contained in:
Aleksander Morgado
2020-01-30 19:09:52 +01:00
parent bcd380a6f1
commit 6d54691930
+4 -4
View File
@@ -5004,14 +5004,14 @@ ussd_cancel_ready (MbimDevice *device,
/* Complete the pending action, regardless of the operation result */
if (self->priv->pending_ussd_action) {
GTask *task;
GTask *pending_task;
task = self->priv->pending_ussd_action;
pending_task = self->priv->pending_ussd_action;
self->priv->pending_ussd_action = NULL;
g_task_return_new_error (task, MM_CORE_ERROR, MM_CORE_ERROR_ABORTED,
g_task_return_new_error (pending_task, MM_CORE_ERROR, MM_CORE_ERROR_ABORTED,
"USSD session was cancelled");
g_object_unref (task);
g_object_unref (pending_task);
}
mm_iface_modem_3gpp_ussd_update_state (MM_IFACE_MODEM_3GPP_USSD (self),