summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-08-16 22:12:08 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-08-16 22:12:08 +0200
commit70ce93a98188a869a3b854d3a1d1353392f948b0 (patch)
tree1a2c9dd4635f59f0862be8eb33f6db4f9ec9e0f4
parentde221f87fa2c5e3048a7c93301d4784b05daa5db (diff)
downloadofono-70ce93a98188a869a3b854d3a1d1353392f948b0.tar.bz2
calypsomodem: Remove useless NULL checks before g_free
-rw-r--r--drivers/calypsomodem/voicecall.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/calypsomodem/voicecall.c b/drivers/calypsomodem/voicecall.c
index 97200964..05bae893 100644
--- a/drivers/calypsomodem/voicecall.c
+++ b/drivers/calypsomodem/voicecall.c
@@ -71,8 +71,7 @@ static void calypso_template(struct ofono_voicecall *vc, const char *cmd,
return;
error:
- if (cbd)
- g_free(cbd);
+ g_free(cbd);
CALLBACK_WITH_FAILURE(cb, data);
}