summaryrefslogtreecommitdiffstats
path: root/drivers/stemodem/voicecall.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/stemodem/voicecall.c')
-rw-r--r--drivers/stemodem/voicecall.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c
index aa5a071a..5cf38bb4 100644
--- a/drivers/stemodem/voicecall.c
+++ b/drivers/stemodem/voicecall.c
@@ -222,8 +222,7 @@ static void ste_dial(struct ofono_voicecall *vc,
return;
error:
- if (cbd)
- g_free(cbd);
+ g_free(cbd);
CALLBACK_WITH_FAILURE(cb, data);
}
@@ -248,8 +247,7 @@ static void ste_template(const char *cmd, struct ofono_voicecall *vc,
return;
error:
- if (req)
- g_free(req);
+ g_free(req);
CALLBACK_WITH_FAILURE(cb, data);
}
@@ -315,8 +313,7 @@ static void ste_release_specific(struct ofono_voicecall *vc, int id,
return;
error:
- if (req)
- g_free(req);
+ g_free(req);
CALLBACK_WITH_FAILURE(cb, data);
}
@@ -401,8 +398,7 @@ static void ste_send_dtmf(struct ofono_voicecall *vc, const char *dtmf,
return;
error:
- if (cbd)
- g_free(cbd);
+ g_free(cbd);
CALLBACK_WITH_FAILURE(cb, data);
}