calypsomodem: Remove useless NULL checks before g_free
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 16 Aug 2010 20:12:08 +0000 (22:12 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 16 Aug 2010 20:12:08 +0000 (22:12 +0200)
drivers/calypsomodem/voicecall.c

index 9720096..05bae89 100644 (file)
@@ -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);
 }