mirror of git://git.sysmocom.de/ofono
stk: Remove unwanted error check
Possible return values of __ofono_voicecall_tone_send are -ENOSYS, -ENOENT, -ENOMEM and -EINVAL.
This commit is contained in:
parent
3cb77a7223
commit
b9ead5e736
|
@ -2170,11 +2170,6 @@ static gboolean handle_command_send_dtmf(const struct stk_command *cmd,
|
||||||
|
|
||||||
err = __ofono_voicecall_tone_send(vc, dtmf, dtmf_sent_cb, stk);
|
err = __ofono_voicecall_tone_send(vc, dtmf, dtmf_sent_cb, stk);
|
||||||
|
|
||||||
if (err == -EBUSY) {
|
|
||||||
rsp->result.type = STK_RESULT_TYPE_TERMINAL_BUSY;
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (err == -ENOSYS) {
|
if (err == -ENOSYS) {
|
||||||
rsp->result.type = STK_RESULT_TYPE_NOT_CAPABLE;
|
rsp->result.type = STK_RESULT_TYPE_NOT_CAPABLE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in New Issue