set_pdp_context(co_ps, ps_context, DEACTIVATE);
out:
- if (tokens != NULL)
- tcore_at_tok_free(tokens);
+ tcore_at_tok_free(tokens);
dbg("Exit");
}
static void get_pdp_address(CoreObject *co_ps, CoreObject *ps_context)
{
- char *cmd_str = NULL;
+ char *cmd_str;
unsigned int cid = tcore_context_get_id(ps_context);
dbg("Enter");
static TReturn set_pdp_context(CoreObject *co_ps, CoreObject *ps_context,
enum pdp_context_state state)
{
- char *cmd_str = NULL;
+ char *cmd_str;
unsigned int cid = tcore_context_get_id(ps_context);
int ret = TCORE_RETURN_SUCCESS;
TcorePendingResponseCallback cb = NULL;
GSList *tokens = NULL;
GSList *lines = (GSList *)data;
const char *line = lines->data;
- char *noti_data = NULL;
+ char *noti_data;
unsigned int cid;
dbg("Enter");
notify_context_deactivated(co_ps, cid);
out:
- if (tokens != NULL)
- tcore_at_tok_free(tokens);
+ tcore_at_tok_free(tokens);
dbg("Exit");