stkagent: Get rid of unneeded checks

This commit is contained in:
Denis Kenzior 2010-07-29 15:08:28 -05:00
parent aa650f7488
commit 9684c4a362
1 changed files with 0 additions and 9 deletions

View File

@ -233,12 +233,6 @@ static gboolean stk_agent_request_start(struct stk_agent *agent,
stk_agent_generic_cb user_cb,
void *user_data, int timeout)
{
if (agent == NULL) {
cb(agent, STK_AGENT_RESULT_TERMINATE, NULL);
return FALSE;
}
agent->msg = dbus_message_new_method_call(agent->bus, agent->path,
OFONO_SIM_APP_INTERFACE,
method);
@ -250,9 +244,6 @@ static gboolean stk_agent_request_start(struct stk_agent *agent,
return FALSE;
}
if (stk_agent_busy(agent))
stk_agent_request_cancel(agent);
agent->cmd_cb = cb;
agent->cmd_timeout = timeout;
agent->user_cb = user_cb;