libmsc/gsm_09_11.c: drop rudimentary vsub->cgi.lai.lac check
This check was copy-pasted either from CC, or from SMS handling code during the initial development of "SS/USSD over GSUP". Now this is the only one survived after the recent refactoring. I doubt this is exactly the right way to check whether subscriber is attached or not. Moreover, this check should rather be done in a single place, rather then in each CC/SS/SMS handler separately. Change-Id: I7bd48860e923cb1f1a5bccc4b0f497ec1a7bcf84
This commit is contained in:
parent
db5bc701a8
commit
ae95436c7a
|
@ -330,13 +330,6 @@ static struct gsm_trans *establish_nc_ss_trans(struct gsm_network *net,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/* If subscriber is not "attached" */
|
||||
if (!vsub->cgi.lai.lac) {
|
||||
LOGP(DSS, LOGL_ERROR, "Network-originated session "
|
||||
"rejected - subscriber is not attached\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Obtain an unused transaction ID */
|
||||
tid = trans_assign_trans_id(net, vsub, TRANS_USSD);
|
||||
if (tid < 0) {
|
||||
|
|
Loading…
Reference in New Issue