projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de221f8
)
calypsomodem: Remove useless NULL checks before g_free
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 16 Aug 2010 20:12:08 +0000
(22:12 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 16 Aug 2010 20:12:08 +0000
(22:12 +0200)
drivers/calypsomodem/voicecall.c
patch
|
blob
|
history
diff --git
a/drivers/calypsomodem/voicecall.c
b/drivers/calypsomodem/voicecall.c
index
9720096
..
05bae89
100644
(file)
--- 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);
}