COSMETIC: 'if' is not a function, so there is space before '('
Change-Id: Ic22623dffce998d70a3c67aa6e445de98f558ed7
This commit is contained in:
parent
3ea9fece6d
commit
7e5bb6283d
|
@ -1066,7 +1066,7 @@ int gprs_llgmm_reset(struct gprs_llc_llme *llme)
|
||||||
/* Generate XID message */
|
/* Generate XID message */
|
||||||
xid_bytes_len = gprs_llc_generate_xid_for_gmm_reset(xid_bytes,
|
xid_bytes_len = gprs_llc_generate_xid_for_gmm_reset(xid_bytes,
|
||||||
sizeof(xid_bytes),llme->iov_ui,llme);
|
sizeof(xid_bytes),llme->iov_ui,llme);
|
||||||
if(xid_bytes_len < 0)
|
if (xid_bytes_len < 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
xid = msgb_put(msg, xid_bytes_len);
|
xid = msgb_put(msg, xid_bytes_len);
|
||||||
memcpy(xid, xid_bytes, xid_bytes_len);
|
memcpy(xid, xid_bytes, xid_bytes_len);
|
||||||
|
@ -1099,7 +1099,7 @@ int gprs_llgmm_reset_oldmsg(struct msgb* oldmsg, uint8_t sapi,
|
||||||
/* Generate XID message */
|
/* Generate XID message */
|
||||||
xid_bytes_len = gprs_llc_generate_xid_for_gmm_reset(xid_bytes,
|
xid_bytes_len = gprs_llc_generate_xid_for_gmm_reset(xid_bytes,
|
||||||
sizeof(xid_bytes),llme->iov_ui,llme);
|
sizeof(xid_bytes),llme->iov_ui,llme);
|
||||||
if(xid_bytes_len < 0)
|
if (xid_bytes_len < 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
xid = msgb_put(msg, xid_bytes_len);
|
xid = msgb_put(msg, xid_bytes_len);
|
||||||
memcpy(xid, xid_bytes, xid_bytes_len);
|
memcpy(xid, xid_bytes, xid_bytes_len);
|
||||||
|
|
|
@ -779,7 +779,7 @@ int sndcp_llunitdata_ind(struct msgb *msg, struct gprs_llc_lle *lle,
|
||||||
/* FIXME: move this RA_ID up to the LLME or even higher */
|
/* FIXME: move this RA_ID up to the LLME or even higher */
|
||||||
bssgp_parse_cell_id(&sne->ra_id, msgb_bcid(msg));
|
bssgp_parse_cell_id(&sne->ra_id, msgb_bcid(msg));
|
||||||
|
|
||||||
if(scomph) {
|
if (scomph) {
|
||||||
sne->defrag.pcomp = scomph->pcomp;
|
sne->defrag.pcomp = scomph->pcomp;
|
||||||
sne->defrag.dcomp = scomph->dcomp;
|
sne->defrag.dcomp = scomph->dcomp;
|
||||||
sne->defrag.proto = lle->llme->comp.proto;
|
sne->defrag.proto = lle->llme->comp.proto;
|
||||||
|
|
|
@ -328,13 +328,13 @@ static int send_act_pdp_cont_acc(struct sgsn_pdp_ctx *pctx)
|
||||||
|
|
||||||
/* Send PDP CTX ACT to MS */
|
/* Send PDP CTX ACT to MS */
|
||||||
rc = gsm48_tx_gsm_act_pdp_acc(pctx);
|
rc = gsm48_tx_gsm_act_pdp_acc(pctx);
|
||||||
if(rc < 0)
|
if (rc < 0)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
/* Send SNDCP XID to MS */
|
/* Send SNDCP XID to MS */
|
||||||
lle = &pctx->mm->gb.llme->lle[pctx->sapi];
|
lle = &pctx->mm->gb.llme->lle[pctx->sapi];
|
||||||
rc = sndcp_sn_xid_req(lle,pctx->nsapi);
|
rc = sndcp_sn_xid_req(lle,pctx->nsapi);
|
||||||
if(rc < 0)
|
if (rc < 0)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -818,7 +818,7 @@ mgcp_header_done:
|
||||||
if (osmux_cid >= 0) {
|
if (osmux_cid >= 0) {
|
||||||
endp->osmux.cid = osmux_cid;
|
endp->osmux.cid = osmux_cid;
|
||||||
endp->osmux.state = OSMUX_STATE_NEGOTIATING;
|
endp->osmux.state = OSMUX_STATE_NEGOTIATING;
|
||||||
} else if(endp->cfg->osmux == OSMUX_USAGE_ONLY) {
|
} else if (endp->cfg->osmux == OSMUX_USAGE_ONLY) {
|
||||||
LOGP(DMGCP, LOGL_ERROR,
|
LOGP(DMGCP, LOGL_ERROR,
|
||||||
"Osmux only and no osmux offered on 0x%x\n", ENDPOINT_NUMBER(endp));
|
"Osmux only and no osmux offered on 0x%x\n", ENDPOINT_NUMBER(endp));
|
||||||
goto error2;
|
goto error2;
|
||||||
|
|
|
@ -80,7 +80,7 @@ static void msc_outgoing_sccp_state(struct sccp_connection *conn, int old_state)
|
||||||
|
|
||||||
if (conn->connection_state >= SCCP_CONNECTION_STATE_RELEASE_COMPLETE) {
|
if (conn->connection_state >= SCCP_CONNECTION_STATE_RELEASE_COMPLETE) {
|
||||||
con_data = (struct osmo_bsc_sccp_con *) conn->data_ctx;
|
con_data = (struct osmo_bsc_sccp_con *) conn->data_ctx;
|
||||||
if(con_data->conn) {
|
if (con_data->conn) {
|
||||||
LOGP(DMSC, LOGL_ERROR,
|
LOGP(DMSC, LOGL_ERROR,
|
||||||
"ERROR: The lchan is still associated.\n");
|
"ERROR: The lchan is still associated.\n");
|
||||||
gsm0808_clear(con_data->conn);
|
gsm0808_clear(con_data->conn);
|
||||||
|
|
Loading…
Reference in New Issue