mbm: NULL check on a g_free is not necessary

This is a change from previously accepted practice
This commit is contained in:
Denis Kenzior 2010-05-12 13:09:08 -05:00
parent d6f540eb8f
commit 49c5def68b
1 changed files with 4 additions and 10 deletions

View File

@ -99,11 +99,8 @@ static void mbm_stk_envelope(struct ofono_stk *stk, int length,
return;
error:
if (buf)
g_free(buf);
if (cbd)
g_free(cbd);
g_free(buf);
g_free(cbd);
CALLBACK_WITH_FAILURE(cb, NULL, 0, data);
}
@ -149,11 +146,8 @@ static void mbm_stk_terminal_response(struct ofono_stk *stk, int length,
return;
error:
if (buf)
g_free(buf);
if (cbd)
g_free(cbd);
g_free(buf);
g_free(cbd);
CALLBACK_WITH_FAILURE(cb, data);
}