summaryrefslogtreecommitdiff
path: root/drivers/atmodem/call-volume.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-08-16 22:02:01 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-08-16 22:02:01 +0200
commita8d3e7433a5485867041a401a4e10604a587dd70 (patch)
tree6ef7c14085728f0e705d0b4c27728c867bcd8a5e /drivers/atmodem/call-volume.c
parent54c75c47f8df356361a1ecab121d4516652f6dfe (diff)
atmodem: Remove useless NULL checks before g_free
Diffstat (limited to 'drivers/atmodem/call-volume.c')
-rw-r--r--drivers/atmodem/call-volume.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/atmodem/call-volume.c b/drivers/atmodem/call-volume.c
index 31288d06..76d2f96a 100644
--- a/drivers/atmodem/call-volume.c
+++ b/drivers/atmodem/call-volume.c
@@ -151,8 +151,7 @@ static void at_call_volume_speaker_volume(struct ofono_call_volume *cv,
return;
error:
- if (cbd)
- g_free(cbd);
+ g_free(cbd);
CALLBACK_WITH_FAILURE(cb, data);
}
@@ -174,8 +173,7 @@ static void at_call_volume_mute(struct ofono_call_volume *cv, int muted,
return;
error:
- if (cbd)
- g_free(cbd);
+ g_free(cbd);
CALLBACK_WITH_FAILURE(cb, data);
}