plugins: remove unnecessary MM_BASE_MODEM() casts
This commit is contained in:
committed by
Aleksander Morgado
parent
c8ad177db9
commit
551197b4e5
@@ -117,7 +117,7 @@ load_sim_identifier (MMSim *self,
|
||||
|
||||
mm_dbg ("loading (Huawei) SIM identifier...");
|
||||
mm_base_modem_at_command (
|
||||
MM_BASE_MODEM (modem),
|
||||
modem,
|
||||
"^ICCID?",
|
||||
5,
|
||||
FALSE,
|
||||
|
||||
@@ -136,7 +136,7 @@ ip_config_ready (MMBaseModem *modem,
|
||||
guint i;
|
||||
guint dns_i;
|
||||
|
||||
response = mm_base_modem_at_command_full_finish (MM_BASE_MODEM (modem), res, &error);
|
||||
response = mm_base_modem_at_command_full_finish (modem, res, &error);
|
||||
if (error) {
|
||||
g_simple_async_result_take_error (ctx->result, error);
|
||||
get_ip_config_context_complete_and_free (ctx);
|
||||
@@ -422,7 +422,7 @@ disconnect_ipdpact_ready (MMBaseModem *modem,
|
||||
return;
|
||||
}
|
||||
|
||||
mm_base_modem_at_command_full_finish (MM_BASE_MODEM (modem), res, &error);
|
||||
mm_base_modem_at_command_full_finish (modem, res, &error);
|
||||
if (error) {
|
||||
self->priv->disconnect_pending = NULL;
|
||||
g_simple_async_result_take_error (ctx->result, error);
|
||||
|
||||
@@ -502,7 +502,7 @@ disconnect_enap_ready (MMBaseModem *modem,
|
||||
GError *error = NULL;
|
||||
|
||||
/* Ignore errors for now */
|
||||
mm_base_modem_at_command_full_finish (MM_BASE_MODEM (modem), res, &error);
|
||||
mm_base_modem_at_command_full_finish (modem, res, &error);
|
||||
if (error) {
|
||||
mm_dbg ("Disconnection failed (not fatal): %s", error->message);
|
||||
g_error_free (error);
|
||||
|
||||
@@ -100,7 +100,7 @@ ip_config_ready (MMBaseModem *modem,
|
||||
guint i;
|
||||
guint dns_i;
|
||||
|
||||
response = mm_base_modem_at_command_full_finish (MM_BASE_MODEM (modem), res, &error);
|
||||
response = mm_base_modem_at_command_full_finish (modem, res, &error);
|
||||
if (error) {
|
||||
g_simple_async_result_take_error (ctx->result, error);
|
||||
get_ip_config_context_complete_and_free (ctx);
|
||||
@@ -736,7 +736,7 @@ disconnect_owancall_ready (MMBaseModem *modem,
|
||||
GError *error = NULL;
|
||||
|
||||
/* Ignore errors for now */
|
||||
mm_base_modem_at_command_full_finish (MM_BASE_MODEM (modem), res, &error);
|
||||
mm_base_modem_at_command_full_finish (modem, res, &error);
|
||||
if (error) {
|
||||
mm_dbg ("Disconnection failed (not fatal): %s", error->message);
|
||||
g_error_free (error);
|
||||
|
||||
@@ -109,7 +109,7 @@ scact_ready (MMBaseModem *modem,
|
||||
{
|
||||
GError *error = NULL;
|
||||
|
||||
if (!mm_base_modem_at_command_full_finish (MM_BASE_MODEM (modem), res, &error)) {
|
||||
if (!mm_base_modem_at_command_full_finish (modem, res, &error)) {
|
||||
g_simple_async_result_take_error (ctx->result, error);
|
||||
dial_3gpp_context_complete_and_free (ctx);
|
||||
return;
|
||||
@@ -127,7 +127,7 @@ authenticate_ready (MMBaseModem *modem,
|
||||
{
|
||||
GError *error = NULL;
|
||||
|
||||
if (!mm_base_modem_at_command_full_finish (MM_BASE_MODEM (modem), res, &error)) {
|
||||
if (!mm_base_modem_at_command_full_finish (modem, res, &error)) {
|
||||
g_simple_async_result_take_error (ctx->result, error);
|
||||
dial_3gpp_context_complete_and_free (ctx);
|
||||
return;
|
||||
@@ -145,7 +145,7 @@ cgatt_ready (MMBaseModem *modem,
|
||||
{
|
||||
GError *error = NULL;
|
||||
|
||||
if (!mm_base_modem_at_command_full_finish (MM_BASE_MODEM (modem), res, &error)) {
|
||||
if (!mm_base_modem_at_command_full_finish (modem, res, &error)) {
|
||||
g_simple_async_result_take_error (ctx->result, error);
|
||||
dial_3gpp_context_complete_and_free (ctx);
|
||||
return;
|
||||
@@ -174,7 +174,7 @@ dial_3gpp_context_step (Dial3gppContext *ctx)
|
||||
ctx->step++;
|
||||
|
||||
case DIAL_3GPP_STEP_PS_ATTACH:
|
||||
mm_base_modem_at_command_full (MM_BASE_MODEM (ctx->modem),
|
||||
mm_base_modem_at_command_full (ctx->modem,
|
||||
ctx->primary,
|
||||
"+CGATT=1",
|
||||
10,
|
||||
@@ -359,7 +359,7 @@ disconnect_scact_ready (MMBaseModem *modem,
|
||||
GError *error = NULL;
|
||||
|
||||
/* Ignore errors for now */
|
||||
mm_base_modem_at_command_full_finish (MM_BASE_MODEM (modem), res, &error);
|
||||
mm_base_modem_at_command_full_finish (modem, res, &error);
|
||||
if (error) {
|
||||
mm_dbg ("Disconnection failed (not fatal): %s", error->message);
|
||||
g_error_free (error);
|
||||
|
||||
@@ -105,7 +105,7 @@ load_sim_identifier (MMSim *self,
|
||||
|
||||
mm_dbg ("loading (Sierra) SIM identifier...");
|
||||
mm_base_modem_at_command (
|
||||
MM_BASE_MODEM (modem),
|
||||
modem,
|
||||
"!ICCID?",
|
||||
3,
|
||||
FALSE,
|
||||
|
||||
Reference in New Issue
Block a user